Skip to content

Commit 81bfc8f

Browse files
author
GillesFischerV
committed
fix Python Flake8 Linter error
1 parent 05f9e93 commit 81bfc8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pvlib/iotools/sodapro.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,12 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
217217

218218
# Response from CAMS follows the status and reason format of PyWPS4
219219
# If an error occurs on our side, we will return error 400 - bad request
220-
# Additional information is available in the response text so we add it here
220+
# Additional information is available in the response text so
221+
# we add it here
221222
# to the error displayed to facilitate users effort to fix their request
222223
if not res.ok:
223224
errors = res.text.split('ows:ExceptionText')[1][1:-2]
224-
res.reason = "%s: <%s>"%(res.reason, errors)
225+
res.reason = "%s: <%s>" % (res.reason, errors)
225226
res.raise_for_status()
226227
# Successful requests returns a csv data file
227228
elif res.headers['Content-Type'] == 'application/csv':

0 commit comments

Comments
 (0)