Ver código fonte

g.extension: catch all exceptions when unable to read metadata
(merge https://trac.osgeo.org/grass/changeset/60155 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@60156 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 11 anos atrás
pai
commit
e76f177d88
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      scripts/g.extension/g.extension.py

+ 1 - 1
scripts/g.extension/g.extension.py

@@ -618,7 +618,7 @@ def install_extension_xml(url, mlist):
                 'files' : fList,
                 'files' : fList,
                 }
                 }
 
 
-    except HTTPError:
+    except:
         grass.error(_("Unable to read metadata file from the remote server"))
         grass.error(_("Unable to read metadata file from the remote server"))
 
 
     if not data:
     if not data: