Mercurial > libervia-backend
changeset 483:655695f85e5b
core: fixed bad try/except block in memory
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Aug 2012 15:49:08 +0200 (2012-08-12) |
parents | e0d1eed4a46b |
children | 385cd2169eb5 |
files | src/memory/memory.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
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