From 7bd1673bd9c1eae227a76a1417fed404d77e2a55 Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Tue, 8 Oct 2019 20:40:27 +0200 Subject: [PATCH] Use log.exception to get a traceback in one more catch-all error handler --- picard/pluginmanager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/picard/pluginmanager.py b/picard/pluginmanager.py index a144548ec..f7ba6b01c 100644 --- a/picard/pluginmanager.py +++ b/picard/pluginmanager.py @@ -26,7 +26,6 @@ import json import os.path import shutil import tempfile -import traceback import zipfile import zipimport @@ -289,8 +288,8 @@ class PluginManager(QtCore.QObject): error = _("Plugin %r has an invalid API version string : %s") self.plugin_error(name, error, name, e) except BaseException: - error = _("Plugin %r : %s") - self.plugin_error(name, error, name, traceback.format_exc()) + error = _("Plugin %r") + self.plugin_error(name, error, name, log_func=log.exception) if module_file is not None: module_file.close() return plugin