Skip to content
Snippets Groups Projects
Commit 414a6552 authored by David Douard's avatar David Douard
Browse files

model: small code improvement of SkippedContent.from_dict

parent 6ce0f714
No related branches found
No related tags found
No related merge requests found
......@@ -727,8 +727,7 @@ class SkippedContent(BaseContent):
@classmethod
def from_dict(cls, d):
d2 = d
d = d.copy()
if d.pop('data', None) is not None:
raise ValueError('SkippedContent has no "data" attribute %r' % d2)
return super().from_dict(d, use_subclass=False)
d2 = d.copy()
if d2.pop('data', None) is not None:
raise ValueError('SkippedContent has no "data" attribute %r' % d)
return super().from_dict(d2, use_subclass=False)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment