changeset 5337:9926fd534a29

misc._download_url: catch urllib2.URLError too. Handles missing ftp dir. It seems that urw-fonts upstream has been removed. This will now use the cache at lilypond.org. Should find if it has found a new home.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Fri, 10 Jul 2009 12:17:55 +0200
parents 679c6e91759f
children 7cff5019357c
files gub/misc.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gub/misc.py	Thu Jul 09 16:48:31 2009 +0200
+++ b/gub/misc.py	Fri Jul 10 12:17:55 2009 +0200
@@ -311,7 +311,7 @@
         t, v, b = sys.exc_info ()
         if (((t == OSError or t == urllib2.URLError)
              and url.startswith ('file:'))
-            or ((t == IOError or t == urllib2.HTTPError)
+            or ((t == IOError or t == urllib2.HTTPError or urllib2.URLError)
                 and (url.startswith ('ftp:') or url.startswith ('http:')))):
             return v
         raise