Mercurial > libervia-backend
diff src/memory/memory.py @ 494:385cd2169eb5
core: memory bug fix
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 17 Aug 2012 03:20:40 +0200 |
parents | 0d9908ac775e 655695f85e5b |
children | 65ecbb473cbb |
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