From 86da219fb9a1bb48d83fb4902550fa0432d24353 Mon Sep 17 00:00:00 2001 From: Jimbo77 Date: Sun, 18 Nov 2012 20:32:21 -0800 Subject: [PATCH] added TypeError category to existing exception --- lib/simple_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simple_config.py b/lib/simple_config.py index c8a0f751..2bbfe6e8 100644 --- a/lib/simple_config.py +++ b/lib/simple_config.py @@ -83,7 +83,7 @@ class SimpleConfig: import ast try: out = ast.literal_eval(out) - except: + except TypeError: print "type error, using default value" out = default