From: Danny Al-Gaaf Date: Tue, 2 Apr 2013 15:26:12 +0000 (+0200) Subject: ceph-disk: define exception type X-Git-Tag: v0.62~103^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4c6d6442a89adc5b56e99cb4d2ed572f2ad192c9;p=ceph.git ceph-disk: define exception type Signed-off-by: Danny Al-Gaaf --- diff --git a/src/ceph-disk b/src/ceph-disk index 001803916020..d714500b0033 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -1707,7 +1707,7 @@ def list_dev(dev, uuid_map, journal_map): desc.extend(more_osd_info(tpath, uuid_map)) finally: unmount(tpath) - except: + except MountError: pass if desc: desc = ['ceph data'] + desc @@ -1756,7 +1756,7 @@ def main_list(args): journal_map[journal_uuid.lower()] = dev finally: unmount(tpath) - except: + except MountError: pass for base, parts in sorted(partmap.iteritems()):