Skip to content

Commit 730df7e

Browse files
committed
Database 'Response' instead of 'Error'
1 parent b153e8d commit 730df7e

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
@@ -338,8 +338,8 @@ def load_turbine_data_from_oedb():
338338
schema, table), )
339339
if not result.status_code == 200:
340340
raise ConnectionError("Database connection not successful. "
341-
"Error: {}".format(result.status_code))
342-
# extract data
341+
"Response: [{}]".format(result.status_code))
342+
# extract data to data frame
343343
turbine_data = pd.DataFrame(result.json())
344344
return turbine_data
345345

0 commit comments

Comments
 (0)