From 46c7d4f83ccaf842cd078181c12191601921d1f6 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Mon, 22 May 2023 11:48:22 -0400 Subject: [PATCH] Guard against errors in a log message --- CHANGELOG.md | 2 ++ girder/girder_large_image/rest/__init__.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22049958d..59af0e533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 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)