Skip to content
Permalink
Browse files

[processing] print full stacktrace to log when a provider cannot be l…

…oaded
  • Loading branch information
volaya committed Apr 26, 2016
1 parent b3a0d9d commit ff85bfe461320dae55dbc1ed61f04bab6677bb5a
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/core/Processing.py
@@ -26,6 +26,7 @@
__revision__ = '$Format:%H$'

import sys
import traceback

from PyQt.QtCore import Qt, QCoreApplication
from PyQt.QtWidgets import QApplication
@@ -96,7 +97,7 @@ def addProvider(provider, updateList=True):
ProcessingLog.addToLog(
ProcessingLog.LOG_ERROR,
Processing.tr('Could not load provider: %s\n%s')
% (provider.getDescription(), unicode(sys.exc_info()[1])))
% (provider.getDescription(), traceback.format_exc()))
Processing.removeProvider(provider)

@staticmethod

0 comments on commit ff85bfe

Please sign in to comment.