Skip to content

Commit bfe9a3d

Browse files
committed
fix marshaling error
1 parent 8ded23d commit bfe9a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_rest_jsonapi/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def get(self, *args, **kwargs):
250250
qs,
251251
qs.include)
252252

253-
result = schema.dump(obj)
253+
result = schema.dump(obj) if obj else None
254254

255255
final_result = self.after_get(result)
256256

0 commit comments

Comments
 (0)