Exception handling fix

This commit is contained in:
Uriziel 2012-09-22 14:36:58 +02:00
parent 2676029542
commit 864e412b1f
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,7 @@ class SyncplayMPC(SyncplayClient):
try:
from syncplay.ui.GuiConfiguration import GuiConfigurationForMPC
self.args = GuiConfigurationForMPC(self.args, self.args.force_gui_prompt).getProcessedConfiguration()
except:
except ImportError:
pass
def _promptForMissingArguments(self):

View File

@ -543,7 +543,8 @@ class SyncplayClient(object):
self.argsGetter.saveValuesIntoConfigFile()
except InvalidConfigValue:
self._checkAndSaveConfiguration()
except:
except Exception, e:
print e.message
sys.exit()
def _prepareArguments(self):