From 6bb572b148ca3f7c08e90ab6cffe61910e008d4a Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Wed, 17 Apr 2024 08:56:01 -0700 Subject: [PATCH] Add more detail to warning message when failing to import a middleware file --- code/client/munkilib/fetch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/client/munkilib/fetch.py b/code/client/munkilib/fetch.py index 1a32d790..34adbbd8 100644 --- a/code/client/munkilib/fetch.py +++ b/code/client/munkilib/fetch.py @@ -115,9 +115,10 @@ def import_middleware(): '%s does not have a %s function' % (filepath, required_function_name)) display.display_warning('Ignoring %s' % filepath) - except BaseException: + except BaseException as err: display.display_warning( - 'Ignoring %s because of error importing module.' % filepath) + 'Ignoring %s because of error importing module: %s', + filepath, err) return