Add error message instead of page content if can't load file

This commit is contained in:
Huluti
2016-12-11 00:42:18 +01:00
parent 849185e23f
commit 29b6fe4d8c
+1 -1
View File
@@ -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):