We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 551206b commit f56a6b3Copy full SHA for f56a6b3
windpowerlib/wind_turbine.py
@@ -337,8 +337,8 @@ def load_turbine_data_from_oedb():
337
oep_url + '/api/v0/schema/{}/tables/{}/rows/?'.format(
338
schema, table), )
339
if not result.status_code == 200:
340
- raise ConnectionError("Database connection not successful. " +
341
- "Error: ".format(result.status_code))
+ raise ConnectionError("Database connection not successful. "
+ "Error: {}".format(result.status_code))
342
# extract data
343
turbine_data = pd.DataFrame(result.json())
344
return turbine_data
0 commit comments