From e41e0774b962f779db03ea0a81c61012e32430d4 Mon Sep 17 00:00:00 2001 From: Huluti Date: Wed, 28 Dec 2016 23:20:36 +0100 Subject: [PATCH] Don't set autostart if an error occured --- 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 c293925..cccded1 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -205,9 +205,9 @@ class ManjaroHello(): else: f.write(content.replace(i3_autostart, "#" + i3_autostart)) f.truncate() + self.autostart = autostart except OSError as e: print(e) - self.autostart = autostart def save_preferences(self): """Save preferences in config file."""