changeset 494:385cd2169eb5

core: memory bug fix
author Goffi <goffi@goffi.org>
date Fri, 17 Aug 2012 03:20:40 +0200
parents b7c4bb2c0668 (current diff) 655695f85e5b (diff)
children a726b234d3bf
files src/memory/memory.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/memory/memory.py	Fri Aug 17 03:17:44 2012 +0200
+++ b/src/memory/memory.py	Fri Aug 17 03:20:40 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
@@ -524,7 +523,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