Skip to content

Commit 4bdb865

Browse files
committed
enable population
1 parent 18c4361 commit 4bdb865

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

benchmarks/populate_into_db.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,16 @@ def parse_args():
6363
print(f"Problem during DB init: {e}")
6464
sys.exit(1)
6565

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-
)
66+
try:
67+
benchmark_id = _init_benchmark(
68+
conn=conn,
69+
branch=args.branch,
70+
commit_id=args.commit_id,
71+
commit_msg=args.commit_msg,
72+
)
73+
except Exception as e:
74+
print(f"Problem during initializing benchmark: {e}")
75+
sys.exit(1)
7276

7377
cur = conn.cursor()
7478

@@ -153,3 +157,4 @@ def _cast_value(val, dtype: str):
153157
conn.close()
154158
except Exception as e:
155159
print(f"Exception: {e}")
160+
sys.exit(1)

0 commit comments

Comments
 (0)