Skip to content

Commit

Permalink
Guard against errors in a log message
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed May 22, 2023
1 parent af524dc commit 46c7d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

### Changes
- Rename tiff exceptions to be better follow python standards ([#1162](../../pull/1162))
- Require a newer version of girder ([#1163](../../pull/1163))

### Bug Fixes
- The deepzoom tile source misreported the format of its tile output ([#1158](../../pull/1158))
- Guard against errors in a log message ([#1164](../../pull/1164))

## 1.20.6

Expand Down
5 changes: 4 additions & 1 deletion girder/girder_large_image/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def altItemFind(self, folderId, text, name, limit, offset, sort, filters=None):
except Exception as exc:
logger.warning('Failed to parse _filter_ from text field: %r', exc)
if filters:
logger.debug('Item find filters: %s', json.dumps(filters))
try:
logger.debug('Item find filters: %s', json.dumps(filters))
except Exception:
pass
if recurse:
return _itemFindRecursive(
self, origItemFind, folderId, text, name, limit, offset, sort, filters)
Expand Down

0 comments on commit 46c7d4f

Please sign in to comment.