commit: a4ee3c8a29db32aad6e5b5404fbc1714185f7ab8
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 16 18:47:06 2015 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Fri Oct 16 18:47:06 2015 +0000
URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=a4ee3c8a
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.
layman/updater.py | 3 +--
1 file changed, 1 insertion(+), 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']