diff options
author | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-05-24 23:02:06 +0200 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-05-24 23:02:06 +0200 |
commit | 9c136c6030e25737866746cc4ba338b6be49b82f (patch) | |
tree | 2d7e6b651737a5a5cea99da0792c867291ffa9c7 /src/lib/Bcfg2/Server | |
parent | eb3ee49d4a04cf990d4baa4e4c8be390a8d0fed9 (diff) | |
download | bcfg2-9c136c6030e25737866746cc4ba338b6be49b82f.tar.gz bcfg2-9c136c6030e25737866746cc4ba338b6be49b82f.tar.bz2 bcfg2-9c136c6030e25737866746cc4ba338b6be49b82f.zip |
Fix logger exc_info usage
Diffstat (limited to 'src/lib/Bcfg2/Server')
-rw-r--r-- | src/lib/Bcfg2/Server/Core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Core.py b/src/lib/Bcfg2/Server/Core.py index 59e9254c1..035d4663a 100644 --- a/src/lib/Bcfg2/Server/Core.py +++ b/src/lib/Bcfg2/Server/Core.py @@ -433,9 +433,9 @@ class Core(object): err = sys.exc_info()[1] self.logger.error("Failed to add a file monitor while " "instantiating plugin %s: %s" % (plugin, err)) - except: + except Exception as e: self.logger.error("Unexpected instantiation failure for plugin %s" - % plugin, exc_info=1) + % plugin, exc_info=e) @close_db_connection def shutdown(self): |