From 155b2504b9d2560fe7cb2e653a4c2b606cb994af Mon Sep 17 00:00:00 2001 From: David Manthey Date: Tue, 7 Dec 2021 14:13:39 -0500 Subject: [PATCH] Reduce dependencies. --- girder/girder_large_image/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/girder/girder_large_image/__init__.py b/girder/girder_large_image/__init__.py index a675d6c41..d9faedbfa 100644 --- a/girder/girder_large_image/__init__.py +++ b/girder/girder_large_image/__init__.py @@ -23,7 +23,7 @@ import girder import large_image -from girder import events +from girder import events, logger from girder.constants import AccessType from girder.exceptions import ValidationException from girder.models.file import File @@ -297,7 +297,10 @@ class LargeImagePlugin(GirderPlugin): CLIENT_SOURCE_PATH = 'web_client' def load(self, info): - getPlugin('worker').load(info) + try: + getPlugin('worker').load(info) + except Exception: + logger.debug('worker plugin is unavailable') unbindGirderEventsByHandlerName('large_image')