Skip to content

Commit

Permalink
Merge pull request #4217 from hove-io/fix_when_asgard_bucket_is_not_set
Browse files Browse the repository at this point in the history
[Tyr/Asgard] fix when asgard bucket is not set
  • Loading branch information
xlqian authored Feb 16, 2024
2 parents c4a7dc8 + f5f0321 commit 6055d57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/tyr/tyr/binarisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,8 @@ def poi2asgard(self, instance_config, filename, job_id, dataset_uid):
with collect_metric("poi2Asgard", job, dataset_uid):
asgard_bucket = current_app.config.get('MINIO_ASGARD_BUCKET_NAME', None)
if not asgard_bucket:
raise Exception("Asgard Bucket is None")
dataset.state = "failed"
return

bash_command = (
"env REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt "
Expand Down

0 comments on commit 6055d57

Please sign in to comment.