diff options
Diffstat (limited to 'dlpcvp.py')
-rwxr-xr-x | dlpcvp.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -11,7 +11,7 @@ import urllib.request import xml.etree.ElementTree as ET from distutils.version import LooseVersion from typing import Iterable, List, Optional, Tuple, Union -from urllib.error import HTTPError +from urllib.error import URLError, HTTPError from urllib.request import Request, urlopen # PyPI API documentation https://warehouse.readthedocs.io/api-reference/ @@ -303,6 +303,11 @@ def main(prj): except RuntimeError as ex: log.warning(f'Package {pkg} cannot be found: {ex}') continue + except URLError as ex: + log.warning( + 'Investigation of package %s caused network error: %s', + pkg, ex) + continue try: if pypi_ver > suse_ver: |