Skip to content

Commit

Permalink
Chore: Fix import errors
Browse files Browse the repository at this point in the history
I don't know what is going on here, but these 
adjustments made it work for me on Python 3.8.0
  • Loading branch information
amotl committed Jun 15, 2020
1 parent fead1df commit 942ea75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python_dwd/download/download.py
@@ -1,7 +1,8 @@
""" download scripts """
from typing import List, Union, Tuple
from pathlib import Path
import urllib
import urllib.request
import urllib.error
import zipfile
from io import BytesIO
from multiprocessing import Pool
Expand Down Expand Up @@ -53,7 +54,7 @@ def _download_dwd_data(remote_file: Union[str, Path]) -> BytesIO:
zip_file = BytesIO(url_request.read())
except urllib.error.URLError:
raise urllib.error.URLError(f"Error: the stationdata {file_server} couldn't be reached.")
except urllib.error.HTTPERROR:
except urllib.error.HTTPError:
pass

try:
Expand Down

0 comments on commit 942ea75

Please sign in to comment.