Skip to content

Commit d1075b5

Browse files
committed
Fix: error when opening non existing file
1 parent 76f09aa commit d1075b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ def __init__(self, parent, type, s):
3737
else:
3838
buttons = Gtk.ButtonsType.OK_CANCEL
3939
Gtk.MessageDialog.__init__(self, parent = parent, destroy_with_parent = True, message_type = type, buttons = buttons, text = s)
40-
self.set_title(APP_NAME)
40+
self.set_title(constants.APP_NAME)
4141

4242
# platform test
4343
def isWindows():
4444
return os.name == 'nt'
4545

4646
# convenience function to display debug messages
4747
def logDebug(s):
48-
pass #sys.stderr.write(f'{APP_NAME}: {s}\n')
48+
pass #sys.stderr.write(f'{constants.APP_NAME}: {s}\n')
4949

5050
# report error messages
5151
def logError(s):

0 commit comments

Comments
 (0)