Add missing str() calls

This commit is contained in:
Florian Bruhin 2016-09-15 12:11:23 +02:00
parent dfac0658ae
commit e5293d34de
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ class JSBridge(QObject):
try:
objreg.get('config').set('conf', sectname, optname, value)
except (configexc.Error, configparser.Error) as e:
message.error(e)
message.error(str(e))
@qutescheme.add_handler('settings', backend=usertypes.Backend.QtWebKit)

View File

@ -320,7 +320,7 @@ class CommandRunner(QObject):
try:
self.run(text, count)
except (cmdexc.CommandMetaError, cmdexc.CommandError) as e:
message.error(e, stack=traceback.format_exc())
message.error(str(e), stack=traceback.format_exc())
@pyqtSlot(str, int)
def run_safely_init(self, text, count=None):
@ -332,4 +332,4 @@ class CommandRunner(QObject):
try:
self.run(text, count)
except (cmdexc.CommandMetaError, cmdexc.CommandError) as e:
message.error(e, stack=traceback.format_exc())
message.error(str(e), stack=traceback.format_exc())