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:
|
with open(filename, "r") as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
return None
|
return "Can't load page."
|
||||||
|
|
||||||
# Handlers
|
# Handlers
|
||||||
def on_languages_changed(self, combobox):
|
def on_languages_changed(self, combobox):
|
||||||
|
|||||||
Reference in New Issue
Block a user