Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Oct 23, 2023
1 parent 474ceab commit 0d6112d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dsp_permissions_scripts/oap/oap_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def _update_permissions_for_resource_and_values(
"""Updates the permissions for the given resource and its values on a DSP server"""
try:
resource = _get_resource(resource_iri, host, token)
except Exception: # pylint: disable=broad-exception-caught
except Exception as exc: # pylint: disable=broad-exception-caught
logger.error(f"Cannot update resource {resource_iri}", exc_info=True)
warnings.warn(f"Cannot update resource {resource_iri}: {exc}")
return False
values = _get_values_to_update(resource)

Expand Down

0 comments on commit 0d6112d

Please sign in to comment.