From 29b6fe4d8c89bb2ea7f2f7c8ab5d7af96c0b3514 Mon Sep 17 00:00:00 2001 From: Huluti Date: Sun, 11 Dec 2016 00:42:18 +0100 Subject: [PATCH] Add error message instead of page content if can't load file --- src/manjaro-hello.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index 74b9c14..fe48e06 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -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):