# HG changeset patch # User Goffi # Date 1344779348 -7200 # Node ID 655695f85e5bf8f46c72d23dd2526846692815df # Parent e0d1eed4a46b23ec46b28057fcbb29110f394b83 core: fixed bad try/except block in memory diff -r e0d1eed4a46b -r 655695f85e5b src/memory/memory.py --- 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