diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-10-01 16:59:53 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-10-02 10:51:38 +0100 |
commit | 228b683d377161f62fea40389259ca089da0fb74 (patch) | |
tree | 13bc5faea69032f9fe1cc6f1ce344b1ff6f69bed /morphcacheserver | |
parent | acefe33868585cf31cda53474a3004da42e00896 (diff) | |
download | morph-cache-server-228b683d377161f62fea40389259ca089da0fb74.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 0e4d909..305c187 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() |