Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
xispa committed Jun 13, 2024
1 parent 6cd1f9f commit ccf6f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/senaite/jsonapi/datamanagers.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def set(self, name, value, **kw):
raise Unauthorized("You are not allowed to modify this content")

# prioritize setters over fields
setter = "set{}".format(name.capitalize(), None)
setter = "set{}".format(name.capitalize())
setter = getattr(self.context, setter, None)
if setter:
return setter(value)
Expand Down

0 comments on commit ccf6f7e

Please sign in to comment.