From 5ae8a2eff6f179bdb566bb1556626e708cfa1a8e Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Wed, 1 Oct 2014 16:59:53 +0000 Subject: Allow morph-cache-server to be bound to an ephemeral port --- morphcacheserver/repocache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'morphcacheserver') 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() -- cgit v1.2.1