Skip to content

Commit

Permalink
avoid wis2box-management bounce due to api setup issue (#841)
Browse files Browse the repository at this point in the history
* avoid wis2box-management bounce due to api setup issue

* flake8
  • Loading branch information
maaikelimper authored Jan 12, 2025
1 parent 0e7570b commit 95eed67
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wis2box-management/wis2box/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,12 @@ def setup(ctx, verbosity):
continue
if metadata_id not in api_collections:
click.echo(f'Adding data-collection for: {metadata_id}')
from wis2box.data import gcm
meta = gcm(record)
setup_collection(meta=meta)
try:
from wis2box.data import gcm
meta = gcm(record)
setup_collection(meta=meta)
except Exception as err:
click.echo(f'ERROR adding data-collection for: {metadata_id}: {err}') # noqa


@click.command()
Expand Down

0 comments on commit 95eed67

Please sign in to comment.