X Tutup
Skip to content

Commit f12446e

Browse files
author
Leo Antunes
committed
fix Gitlab.delete() error reporting on missing arg
1 parent 1e1d467 commit f12446e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def delete(self, obj, id=None, **kwargs):
528528
if k not in params:
529529
try:
530530
params[k] = getattr(obj, k)
531-
except KeyError:
531+
except AttributeError:
532532
missing.append(k)
533533
if missing:
534534
raise GitlabDeleteError('Missing attribute(s): %s' %

0 commit comments

Comments
 (0)
X Tutup