summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordol-sen <brian.dolbec@gmail.com>2011-07-12 13:00:54 -0700
committerdol-sen <brian.dolbec@gmail.com>2011-07-12 13:00:54 -0700
commitbebce640cda970df5f98e1a9d3a2d0c4a68b2e57 (patch)
treee9f16e45365f518909a3ba38824a90890fd77369
parentfix success mistracking (diff)
downloadlayman-bebce640cda970df5f98e1a9d3a2d0c4a68b2e57.tar.gz
layman-bebce640cda970df5f98e1a9d3a2d0c4a68b2e57.tar.bz2
layman-bebce640cda970df5f98e1a9d3a2d0c4a68b2e57.zip
change raising an exceptio to outputing the error.
-rw-r--r--layman/db.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/layman/db.py b/layman/db.py
index 3ed5cc6..b1df906 100644
--- a/layman/db.py
+++ b/layman/db.py
@@ -206,7 +206,9 @@ class DB(DbBase):
self.write(self.path)
make_conf.delete(overlay)
else:
- raise Exception('No local overlay named "' + overlay.name + '"!')
+ self.output.error('No local overlay named "' + overlay.name + '"!')
+ return False
+ return True
def sync(self, overlay_name, quiet = False):
'''Synchronize the given overlay.'''