must explicitly catch ConfigParser.MissingSectionHeaderError
[sfa.git] / sfa / util / config.py
index 6fdb48d..7220afb 100644 (file)
@@ -47,7 +47,7 @@ DO NOT EDIT. This file was automatically generated at
         if filename:
             try:
                 self.config.read(filename)
-            except:
+            except ConfigParser.MissingSectionHeaderError:
                 if filename.endswith('.xml'):
                     self.load_xml(filename)
                 else: