Skip to content

Commit 4138f70

Browse files
author
Adrien "ze" Urban
committed
gitlab: prevent ./gitlab gitlab-object ...
1 parent 8ce3e30 commit 4138f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ try:
316316
except:
317317
die("Unknown object: %s" % what)
318318

319-
if gitlab.GitlabObject not in getmro(cls):
319+
if gitlab.GitlabObject not in getmro(cls) or cls == gitlab.GitlabObject:
320320
die("Unknown object: %s" % what)
321321

322322
if action == "help":

0 commit comments

Comments
 (0)