Skip to content

Commit

Permalink
Merge pull request #1164 from girder/guard-log-message
Browse files Browse the repository at this point in the history
Guard against errors in a log message
  • Loading branch information
manthey authored May 22, 2023
2 parents 1889f7d + 46c7d4f commit 2c44ebe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

### 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 2c44ebe

Please sign in to comment.