From a4ee3c8a29db32aad6e5b5404fbc1714185f7ab8 Mon Sep 17 00:00:00 2001 From: Devan Franchini Date: Fri, 16 Oct 2015 14:47:06 -0400 Subject: 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'] -- cgit v1.2.3-18-g5258