Add error message instead of page content if can't load file
This commit is contained in:
@@ -187,7 +187,7 @@ class ManjaroHello():
|
||||
with open(filename, "r") as f:
|
||||
return f.read()
|
||||
except OSError as e:
|
||||
return None
|
||||
return "Can't load page."
|
||||
|
||||
# Handlers
|
||||
def on_languages_changed(self, combobox):
|
||||
|
||||
Reference in New Issue
Block a user