applx suggested fix from issue #6573 (#7390)

pull/7396/head
wokar 2017-05-03 06:04:00 +02:00 committed by Paulus Schoutsen
parent 517bd39015
commit f9627a5646
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ class ZamgData(object):
response = requests.get(
cls.API_URL, headers=cls.API_HEADERS, timeout=15)
response.raise_for_status()
response.encoding = 'UTF8'
return csv.DictReader(response.text.splitlines(),
delimiter=';', quotechar='"')
except Exception: # pylint:disable=broad-except