# HG changeset patch # User Björn Ricks # Date 1354802669 -3600 # Node ID 90abd423fc0ce44e4e9dcf49d777f6f6b475ddd4 # Parent 1c01c061dfb37fd58eeb4d345187a417f188c8c0 Fix: Return empty list if section is not found diff -r 1c01c061dfb3 -r 90abd423fc0c getan/config.py --- a/getan/config.py Thu Dec 06 14:57:55 2012 +0100 +++ b/getan/config.py Thu Dec 06 15:04:29 2012 +0100 @@ -59,7 +59,10 @@ return self.config.get(section, key) def items(self, section): - return self.config.items(section) + try: + return self.config.items(section) + except NoSectionError: + return [] def get_keybinding(self): return self.keybinding