diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-10-01 16:59:53 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-10-02 13:09:21 +0000 |
commit | 5ae8a2eff6f179bdb566bb1556626e708cfa1a8e (patch) | |
tree | f7f49a16229a7a29712c8cddd4be26b20518a3bf /morphcacheserver | |
parent | b760a2c4e1c22973baee8daf44a332b123ad1fdb (diff) | |
download | morph-5ae8a2eff6f179bdb566bb1556626e708cfa1a8e.tar.gz |
Allow morph-cache-server to be bound to an ephemeral port
Diffstat (limited to 'morphcacheserver')
-rw-r--r-- | morphcacheserver/repocache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/morphcacheserver/repocache.py b/morphcacheserver/repocache.py index 0e4d909e..305c187c 100644 --- a/morphcacheserver/repocache.py +++ b/morphcacheserver/repocache.py @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Codethink Limited +# Copyright (C) 2013,2014 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -91,7 +91,7 @@ class RepoCache(object): raise RepositoryNotFoundError(repo_url) try: sha1 = self._rev_parse(repo_dir, ref) - except: + except BaseException: raise InvalidReferenceError(repo_url, ref) return self._cat_file(repo_dir, sha1, filename) @@ -110,7 +110,7 @@ class RepoCache(object): try: sha1 = self._rev_parse(repo_dir, ref) - except: + except BaseException: raise InvalidReferenceError(repo_url, ref) lines = self._ls_tree(repo_dir, sha1, path).strip() |