Reuse utils.py in worker.py; Add many exceptions for safety

This commit is contained in:
andrew authored and Andrew Grant committed 2024-02-02 05:35:19 -05:00
1 parent a0db932b09
commit 8f250c2c3f
3 files changed
+116 -217

No files matched your search

+2 -2
View File
@@ -84,9 +84,9 @@ def get_private_engine(engine, config):
cpu_flags = [x.replace('_', '').replace('.', '').upper() for x in cpu_info.get('flags', [])]
try:
download_private_engine(engine, branch, source, out_path, cpu_name, cpu_flags, None)
download_private_engine(engine, branch, source, out_path, cpu_name, cpu_flags)
except OpenBenchMissingArtifactExceptionException as error:
except OpenBenchMissingArtifactException as error:
print ('Failed to download %s... %s', engine, error.message)
if __name__ == '__main__':