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.
2 parents 0f1f5f7 + 6f15c03 commit 1e06c94Copy full SHA for 1e06c94
windpowerlib/wind_turbine.py
@@ -336,9 +336,7 @@ def load_turbine_data_from_oedb():
336
result = requests.get(
337
oep_url + '/api/v0/schema/{}/tables/{}/rows/?'.format(
338
schema, table), )
339
- if result.status_code == 200:
340
- logging.info("Database connection successful.")
341
- else:
+ if not result.status_code == 200:
342
raise ConnectionError("Database connection not successful. " +
343
"Error: ".format(result.status_code))
344
# extract data
0 commit comments