core: memory bug fix
This commit is contained in:
commit
60446bddf3
1 changed files with 1 additions and 2 deletions
|
|
@ -22,7 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
import time
|
|
||||||
from ConfigParser import SafeConfigParser, NoOptionError, NoSectionError
|
from ConfigParser import SafeConfigParser, NoOptionError, NoSectionError
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
from logging import debug, info, warning, error
|
from logging import debug, info, warning, error
|
||||||
|
|
@ -524,7 +523,7 @@ class Memory:
|
||||||
section='DEFAULT'
|
section='DEFAULT'
|
||||||
try:
|
try:
|
||||||
_value = self.config.get(section, name)
|
_value = self.config.get(section, name)
|
||||||
except NoOptionError, NoSectionError:
|
except (NoOptionError, NoSectionError):
|
||||||
_value = ''
|
_value = ''
|
||||||
|
|
||||||
return os.path.expanduser(_value) if name.endswith('_path') or name.endswith('_dir') else _value
|
return os.path.expanduser(_value) if name.endswith('_path') or name.endswith('_dir') else _value
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue