diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2011-02-28 12:45:19 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-02-28 12:45:19 +0100 |
commit | d1ab86e1503d57b2d56d0f25990c1d1dd8f02180 (patch) | |
tree | 703b329acdf8adf97ad640ac9a3b6464d9c360de /setup.py | |
parent | 60c6049e12e9b86b6b1bc4ba65e101c80f2d237b (diff) | |
download | testtools-d1ab86e1503d57b2d56d0f25990c1d1dd8f02180.tar.gz |
Catch NoWorkingTree rather than NotBranchError.
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ def get_revno(): import bzrlib.workingtree try: t = bzrlib.workingtree.WorkingTree.open_containing(__file__)[0] - except bzrlib.errors.NotBranchError: + except bzrlib.errors.NoWorkingTree: return None else: return t.branch.revno() |