Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add 'warning' to the respective python message log tab
  • Loading branch information
jef-n committed Feb 24, 2014
1 parent 6a3d0d8 commit 91ecc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/utils.py
Expand Up @@ -52,7 +52,7 @@ def showWarning(message, category, filename, lineno, file=None, line=None):
stk += s.decode('utf-8', 'replace')
QgsMessageLog.logMessage(
"warning:%s\ntraceback:%s" % ( warnings.formatwarning(message, category, filename, lineno), stk),
QCoreApplication.translate( "Python", "Python" )
QCoreApplication.translate( "Python", "Python warning" )
)
warnings.showwarning = showWarning

Expand Down

0 comments on commit 91ecc5f

Please sign in to comment.