Use log.exception to get a traceback in one more catch-all error handler

This commit is contained in:
Wieland Hoffmann
2019-10-08 20:40:27 +02:00
parent 6ad55403db
commit 7bd1673bd9

View File

@@ -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