Skip to content

Commit c9378f5

Browse files
committed
move AttributeError to 'data' property
1 parent aaae9a3 commit c9378f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ayon_api/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def data(self):
137137
if self._data is None:
138138
try:
139139
self._data = self.orig_response.json()
140-
except RequestsJSONDecodeError:
140+
except (AttributeError, RequestsJSONDecodeError):
141141
self._data = {}
142142
return self._data
143143

0 commit comments

Comments
 (0)