diff --git a/openphoto/openphoto_http.py b/openphoto/openphoto_http.py index 2933d43..82d11bb 100644 --- a/openphoto/openphoto_http.py +++ b/openphoto/openphoto_http.py @@ -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: