Skip to content

Commit a139179

Browse files
author
Gauvain Pocentek
committed
[cli] Fix the case where we have nothing to print
1 parent bbef1f9 commit a139179

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gitlab/v4/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,5 @@ def run(gl, what, action, args, verbose, output, fields):
366366
printer.display(get_dict(data, fields), verbose=verbose, obj=data)
367367
elif isinstance(data, six.string_types):
368368
print(data)
369-
else:
370-
# We assume we got bytes
369+
elif hasattr(data, 'decode'):
371370
print(data.decode())

0 commit comments

Comments
 (0)