Fixed two little issues related to wrong parameter types. jsonrpc

Fri, 02 Sep 2016 19:08:02 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 02 Sep 2016 19:08:02 +0200
branch
jsonrpc
changeset 5130
27fe451262bf
parent 5129
e4ab234cf071
child 5131
889ed5ff7a68

Fixed two little issues related to wrong parameter types.
(grafted from d28b92dabc2b44121d5e9e62c939ca95bde1026e)

Debugger/DebugUI.py file | annotate | diff | comparison | revisions
QScintilla/Shell.py file | annotate | diff | comparison | revisions
--- a/Debugger/DebugUI.py	Fri Sep 02 19:50:20 2016 +0200
+++ b/Debugger/DebugUI.py	Fri Sep 02 19:08:02 2016 +0200
@@ -1079,7 +1079,7 @@
         """
         self.ui.raise_()
         QApplication.processEvents()
-        if exceptionType is None:
+        if not exceptionType:
             E5MessageBox.critical(
                 self.ui, Program,
                 self.tr('An unhandled exception occured.'
--- a/QScintilla/Shell.py	Fri Sep 02 19:50:20 2016 +0200
+++ b/QScintilla/Shell.py	Fri Sep 02 19:08:02 2016 +0200
@@ -697,7 +697,7 @@
         self .__clientError()
         
         if Preferences.getDebugger("ShowExceptionInShell"):
-            if exceptionType is not None:
+            if exceptionType:
                 if stackTrace:
                     self.__write(
                         self.tr('Exception "{0}"\n{1}\nFile: {2}, Line: {3}\n')

eric ide

mercurial