Skip to content

Commit

Permalink
fix try/except for acquisition id
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-TBT committed Mar 22, 2024
1 parent eeeee88 commit 977f7b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1653,10 +1653,12 @@ def plateGrid_json(request, pid, field=0, acquisition=None, conn=None, **kwargs)
field = int(field or 0)
except ValueError:
field = 0
try:
acquisition = int(acquisition)
except:
acquisition = None

if acquisition is not None:
try:
acquisition = int(acquisition)
except ValueError:
acquisition = None

prefix = kwargs.get("thumbprefix", "webgateway_render_thumbnail")
thumbsize = getIntOrDefault(request, "size", None)
Expand Down

0 comments on commit 977f7b6

Please sign in to comment.