Skip to content

Commit 1e06c94

Browse files
authored
Merge pull request #36 from wind-python/fix/wrong_logging_level
Fix wrong logging level
2 parents 0f1f5f7 + 6f15c03 commit 1e06c94

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

windpowerlib/wind_turbine.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,7 @@ def load_turbine_data_from_oedb():
336336
result = requests.get(
337337
oep_url + '/api/v0/schema/{}/tables/{}/rows/?'.format(
338338
schema, table), )
339-
if result.status_code == 200:
340-
logging.info("Database connection successful.")
341-
else:
339+
if not result.status_code == 200:
342340
raise ConnectionError("Database connection not successful. " +
343341
"Error: ".format(result.status_code))
344342
# extract data

0 commit comments

Comments
 (0)