Skip to content

Commit

Permalink
avoid wis2box-management bounce due to api setup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper authored Jan 10, 2025
1 parent bbafee3 commit 8f5c50a
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}')


@click.command()
Expand Down

0 comments on commit 8f5c50a

Please sign in to comment.