Skip to content

Commit f56a6b3

Browse files
committed
Fix error message, fix #42
1 parent 551206b commit f56a6b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windpowerlib/wind_turbine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ def load_turbine_data_from_oedb():
337337
oep_url + '/api/v0/schema/{}/tables/{}/rows/?'.format(
338338
schema, table), )
339339
if not result.status_code == 200:
340-
raise ConnectionError("Database connection not successful. " +
341-
"Error: ".format(result.status_code))
340+
raise ConnectionError("Database connection not successful. "
341+
"Error: {}".format(result.status_code))
342342
# extract data
343343
turbine_data = pd.DataFrame(result.json())
344344
return turbine_data

0 commit comments

Comments
 (0)