Fix: error when opening non existing file

This commit is contained in:
Romain Failliot 2021-11-18 09:58:26 -05:00
parent 76f09aa7ef
commit d1075b5bf5
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class MessageDialog(Gtk.MessageDialog):
else: else:
buttons = Gtk.ButtonsType.OK_CANCEL buttons = Gtk.ButtonsType.OK_CANCEL
Gtk.MessageDialog.__init__(self, parent = parent, destroy_with_parent = True, message_type = type, buttons = buttons, text = s) Gtk.MessageDialog.__init__(self, parent = parent, destroy_with_parent = True, message_type = type, buttons = buttons, text = s)
self.set_title(APP_NAME) self.set_title(constants.APP_NAME)
# platform test # platform test
def isWindows(): def isWindows():
@ -45,7 +45,7 @@ def isWindows():
# convenience function to display debug messages # convenience function to display debug messages
def logDebug(s): def logDebug(s):
pass #sys.stderr.write(f'{APP_NAME}: {s}\n') pass #sys.stderr.write(f'{constants.APP_NAME}: {s}\n')
# report error messages # report error messages
def logError(s): def logError(s):