Browse Source

added TypeError category to existing exception

283
Jimbo77 12 years ago
parent
commit
86da219fb9
  1. 2
      lib/simple_config.py

2
lib/simple_config.py

@ -83,7 +83,7 @@ class SimpleConfig:
import ast import ast
try: try:
out = ast.literal_eval(out) out = ast.literal_eval(out)
except: except TypeError:
print "type error, using default value" print "type error, using default value"
out = default out = default

Loading…
Cancel
Save