aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ventoo/main.py')
-rw-r--r--src/ventoo/main.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ventoo/main.py b/src/ventoo/main.py
index 2900c9b..c4ee4d5 100644
--- a/src/ventoo/main.py
+++ b/src/ventoo/main.py
@@ -415,8 +415,13 @@ class MainWindow(gtk.Window):
#update the display...and get new module info.
#thse path manipulations are sketchy, should make this code clearer.
tmp = self.currentConfigFilePath
- self.currentModule = VentooModule.VentooModule(augeas_utils.getVentooModuleNameFromSysPath(self.a, osp.join('/', tmp)))
- self.refreshAugeasEditTree()
+ try:
+ self.currentModule = VentooModule.VentooModule(augeas_utils.getVentooModuleNameFromSysPath(self.a, osp.join('/', tmp)))
+ self.refreshAugeasEditTree()
+ except RuntimeError:
+ #module doesn't exist. ignore request.
+ self.edit_tv.clear()
+
def hideApplyDiffButton(self):
self.applyDiffButton.hide()