Skip to content

Commit

Permalink
Merge pull request #11 from German-BioImaging/uncaught-TypeError-patch
Browse files Browse the repository at this point in the history
Change ValueError to generic Exception
  • Loading branch information
Tom-TBT committed Apr 26, 2024
2 parents e56d539 + 12aa4d8 commit c1daf5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omero_tagsearch/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def index(request, conn=None, **kwargs):
selected = parent_node
init["initially_open"] = [f"{ptype}-{parent_node.getId()}"]
init["initially_select"] = init["initially_open"][:]
except ValueError:
except Exception:
# invalid id
pass
if first_obj not in ("project", "screen"):
Expand Down Expand Up @@ -145,7 +145,7 @@ def index(request, conn=None, **kwargs):
user_id = initially_open_owner
try:
user_id = int(user_id)
except ValueError:
except Exception:
user_id = None

# Check is user_id is in a current group
Expand Down

0 comments on commit c1daf5b

Please sign in to comment.