From 2b4c3aecff94c1093de41285bba34b40bc69ddaf Mon Sep 17 00:00:00 2001 From: Sander Sweers Date: Mon, 2 May 2016 14:49:13 +0200 Subject: [PATCH 2/2] NetConf: Treat UnicodeDecodeError as if there was no file This is unfortunate but most people will not even notice we created a new state file. --- blueman/main/NetConf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueman/main/NetConf.py b/blueman/main/NetConf.py index d62dc14..4d7efd8 100644 --- a/blueman/main/NetConf.py +++ b/blueman/main/NetConf.py @@ -222,7 +222,7 @@ class NetConf(object): NetConf.default_inst = obj f.close() return obj - except IOError: + except (IOError, UnicodeDecodeError): n = cls() try: n.store() -- 2.8.3