diff --git a/CHANGELOG.md b/CHANGELOG.md index 7633ce777..59af0e533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/girder/girder_large_image/rest/__init__.py b/girder/girder_large_image/rest/__init__.py index 3ec34425b..21b8090cc 100644 --- a/girder/girder_large_image/rest/__init__.py +++ b/girder/girder_large_image/rest/__init__.py @@ -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)