Handle the case where an empty response is returned (possibly related to Issue #1086)
This commit is contained in:
parent
0ef3abe79e
commit
eeffec991f
1 changed files with 2 additions and 0 deletions
|
@ -144,6 +144,8 @@ class OpenPhotoHttp:
|
|||
@staticmethod
|
||||
def _result_to_list(result):
|
||||
""" Handle the case where the result contains no items """
|
||||
if not result:
|
||||
return []
|
||||
if result[0]["totalRows"] == 0:
|
||||
return []
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue