We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18c4361 commit 4bdb865Copy full SHA for 4bdb865
benchmarks/populate_into_db.py
@@ -63,12 +63,16 @@ def parse_args():
63
print(f"Problem during DB init: {e}")
64
sys.exit(1)
65
66
- benchmark_id = _init_benchmark(
67
- conn=conn,
68
- branch=args.branch,
69
- commit_id=args.commit_id,
70
- commit_msg=args.commit_msg,
71
- )
+ try:
+ benchmark_id = _init_benchmark(
+ conn=conn,
+ branch=args.branch,
+ commit_id=args.commit_id,
+ commit_msg=args.commit_msg,
72
+ )
73
+ except Exception as e:
74
+ print(f"Problem during initializing benchmark: {e}")
75
+ sys.exit(1)
76
77
cur = conn.cursor()
78
@@ -153,3 +157,4 @@ def _cast_value(val, dtype: str):
153
157
conn.close()
154
158
except Exception as e:
155
159
print(f"Exception: {e}")
160
0 commit comments