diff options
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 01a5b63..c812d66 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -240,7 +240,7 @@ class UpdateMixin(object): return http_method @exc.on_http_error(exc.GitlabUpdateError) - def update(self, id=None, new_data={}, **kwargs): + def update(self, id=None, new_data=None, **kwargs): """Update an object on the server. Args: @@ -255,6 +255,7 @@ class UpdateMixin(object): GitlabAuthenticationError: If authentication is not correct GitlabUpdateError: If the server cannot perform the request """ + new_data = new_data or {} if id is None: path = self.path |