diff options
author | 2015-10-16 14:47:06 -0400 | |
---|---|---|
committer | 2015-10-16 14:47:06 -0400 | |
commit | a4ee3c8a29db32aad6e5b5404fbc1714185f7ab8 (patch) | |
tree | e3c38d89938ecbc9fa0307877a573590e6015470 | |
parent | dbbase.py: Creates internal function to get database module controller (diff) | |
download | layman-a4ee3c8a29db32aad6e5b5404fbc1714185f7ab8.tar.gz layman-a4ee3c8a29db32aad6e5b5404fbc1714185f7ab8.tar.bz2 layman-a4ee3c8a29db32aad6e5b5404fbc1714185f7ab8.zip |
updater.py: Alters the way migrate_database handles an invalid db_type
Instead of showing the user the error and raising an exception, an
alternative method of dying after hitting the error has been
implemented.
-rw-r--r-- | layman/updater.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layman/updater.py b/layman/updater.py index 25abf72..5cef2b0 100644 --- a/layman/updater.py +++ b/layman/updater.py @@ -118,8 +118,7 @@ class Main(object): if migrate_type not in DB_TYPES: msg = 'migrate_database() error; invalid migration type: '\ '"%(db_type)s"' % {'db_type': migrate_type} - self.output.error(' ' + msg) - raise Exception(msg) + self.output.die(msg) db = DB(self.config) installed = self.config['installed'] |