Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard against errors in a log message #1164

Merged
merged 1 commit into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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