must explicitly catch ConfigParser.MissingSectionHeaderError
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 19 Jul 2012 14:25:51 +0000 (10:25 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 19 Jul 2012 14:25:51 +0000 (10:25 -0400)
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: