diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-25 16:44:08 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-25 16:44:08 +0100 |
commit | 58a0ec716dab32bf16f9ea162b5c2c6cdcfc7329 (patch) | |
tree | 4178861f1eec25b2b481aa7c8b350548eeeb86bb /morphlib/remoteartifactcache.py | |
parent | ecdd22d0aa03ddb2bdac3fcba506d70d6ab45c4b (diff) | |
download | morph-58a0ec716dab32bf16f9ea162b5c2c6cdcfc7329.tar.gz |
Catch URLError so that missing cache-servers don't cause morph to die.
Reviewed-By: Lars Wirzenius on IRC
Diffstat (limited to 'morphlib/remoteartifactcache.py')
-rw-r--r-- | morphlib/remoteartifactcache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/remoteartifactcache.py b/morphlib/remoteartifactcache.py index c0c0f723..e50c1159 100644 --- a/morphlib/remoteartifactcache.py +++ b/morphlib/remoteartifactcache.py @@ -95,7 +95,7 @@ class RemoteArtifactCache(object): try: urllib2.urlopen(request) return True - except urllib2.HTTPError: + except (urllib2.HTTPError, urllib2.URLError): return False def _get_file(self, filename): # pragma: no cover |