Skip to content

Commit e2332bc

Browse files
author
sreeder
committed
add test for none in upate function
1 parent dcdf573 commit e2332bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

odmtools/odmservices/edit_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,9 @@ def updateValues(self, values):
474474
:param values: pandas Dataframe - must contain a "datavalues" column and a date time as the index
475475
:return:
476476
"""
477-
477+
if values is None:
478+
print("please send in a valid DataFrame object")
479+
return
478480
update_list = [{"value": row["DataValue"], "id": index} for index, row in values.iterrows()]
479481

480482
ids = values.index.tolist()

0 commit comments

Comments
 (0)