Skip to content

Commit

Permalink
except Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Oct 12, 2023
1 parent f8925c3 commit ac96f9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dsp_permissions_scripts/utils/doap_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def apply_updated_doaps_on_server(
token=token,
)
_log_and_print_doap_update(doap=new_doap, state="after")
except: # pylint: disable=bare-except
except Exception: # pylint: disable=broad-exception-caught
logger.error(f"ERROR while updating permissions of resource {d.doap_iri}", exc_info=True)
warnings.warn(f"ERROR while updating permissions of resource {d.doap_iri}")

Expand Down
2 changes: 1 addition & 1 deletion dsp_permissions_scripts/utils/oap.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def apply_updated_oaps_on_server(
host=host,
token=token,
)
except: # pylint: disable=bare-except
except Exception: # pylint: disable=broad-exception-caught
logger.error(f"ERROR while updating permissions of resource {resource_oap.object_iri}", exc_info=True)
warnings.warn(f"ERROR while updating permissions of resource {resource_oap.object_iri}")
num_of_errors += 1
Expand Down

0 comments on commit ac96f9a

Please sign in to comment.