From 3a43f029030a1b729cf00017d42f3de3c2cd7a33 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 27 Sep 2009 00:05:02 +0900 Subject: [PATCH] catch any load error for config file --- ankiqt/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/config.py b/ankiqt/config.py index 36b6f5259..53235a122 100644 --- a/ankiqt/config.py +++ b/ankiqt/config.py @@ -150,7 +150,7 @@ class Config(dict): try: f = open(db) self.update(cPickle.load(f)) - except (IOError, EOFError): + except: # config file was corrupted previously pass self.defaults()