diff --git a/tuned/daemon/application.py b/tuned/daemon/application.py index e4c9da3..4745adb 100644 --- a/tuned/daemon/application.py +++ b/tuned/daemon/application.py @@ -1,6 +1,6 @@ from tuned import storage, units, monitors, plugins, profiles, exports, hardware from tuned.exceptions import TunedException -from configobj import ConfigObj +from configobj import ConfigObj, ConfigObjError from validate import Validator import tuned.logs import controller diff --git a/tuned/gtk/gui_plugin_loader.py b/tuned/gtk/gui_plugin_loader.py index bdef93a..a3d7a90 100644 --- a/tuned/gtk/gui_plugin_loader.py +++ b/tuned/gtk/gui_plugin_loader.py @@ -136,7 +136,7 @@ class GuiPluginLoader(PluginLoader): """ try: - config = ConfigObj(file_name, + config = ConfigObj.ConfigObj(file_name, configspec=global_config_spec, raise_errors=True, file_error=True) except IOError, e: diff --git a/tuned/profiles/loader.py b/tuned/profiles/loader.py index 70c1446..8183a04 100644 --- a/tuned/profiles/loader.py +++ b/tuned/profiles/loader.py @@ -1,5 +1,5 @@ import tuned.profiles.profile -from configobj import ConfigObj +from configobj import ConfigObj, ConfigObjError import os.path import collections import tuned.logs