Skip to content

Commit 749fd5e

Browse files
committed
lint
1 parent 396833b commit 749fd5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pvlib/iotools/ecmwf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def j_to_w(j):
3737
def m_to_cm(m):
3838
return m / 100
3939

40+
4041
UNITS = {
4142
'u100': same,
4243
'v100': same,
@@ -128,9 +129,10 @@ def get_era5(latitude, longitude, start, end, variables, api_key,
128129
response = requests.post(url + slug, json=params, headers=headers)
129130
submission_response = response.json()
130131
if not response.ok:
131-
raise Exception(response.json()) # likely need to accept license
132+
raise Exception(submission_response) # likely need to accept license
133+
132134
job_id = submission_response['jobID']
133-
135+
134136
# Step 2: poll until the data request is ready
135137
slug = "jobs/" + job_id
136138
poll_interval = 1

0 commit comments

Comments
 (0)