diff src/memory/memory.py @ 483:655695f85e5b

core: fixed bad try/except block in memory
author Goffi <goffi@goffi.org>
date Sun, 12 Aug 2012 15:49:08 +0200
parents 2a072735e459
children 385cd2169eb5
line wrap: on
line diff
--- a/src/memory/memory.py	Thu Aug 02 01:08:51 2012 +0200
+++ b/src/memory/memory.py	Sun Aug 12 15:49:08 2012 +0200
@@ -22,7 +22,6 @@
 from __future__ import with_statement
 
 import os.path
-import time
 from ConfigParser import SafeConfigParser, NoOptionError, NoSectionError
 from xml.dom import minidom
 from logging import debug, info, warning, error
@@ -528,7 +527,7 @@
             section='DEFAULT'
         try:
             _value = self.config.get(section, name)
-        except NoOptionError, NoSectionError:
+        except (NoOptionError, NoSectionError):
             _value = ''
 
         return os.path.expanduser(_value) if name.endswith('_path') or name.endswith('_dir') else _value