Skip to content

Commit 0c3a6cb

Browse files
csoriano1618Gauvain Pocentek
authored and
Gauvain Pocentek
committed
mixins.py: Avoid sending empty update data to issue.save (#389)
1 parent 4e048e1 commit 0c3a6cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitlab/mixins.py

+3
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ def save(self, **kwargs):
303303
GitlabUpdateError: If the server cannot perform the request
304304
"""
305305
updated_data = self._get_updated_data()
306+
# Nothing to update. Server fails if sent an empty dict.
307+
if not updated_data:
308+
return
306309

307310
# call the manager
308311
obj_id = self.get_id()

0 commit comments

Comments
 (0)