Add missing str() calls
This commit is contained in:
parent
dfac0658ae
commit
e5293d34de
@ -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)
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user