diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-07-12 19:43:06 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-07-12 19:43:06 +0200 |
commit | a139179ea8246b2f000327bd1e106d5708077b31 (patch) | |
tree | cd73d51cd186dc3f8271c49a0c0964ed3c9e851b /gitlab/v4/cli.py | |
parent | bbef1f916c8ab65ed7f9717859caf516ebedb335 (diff) | |
download | gitlab-a139179ea8246b2f000327bd1e106d5708077b31.tar.gz |
[cli] Fix the case where we have nothing to print
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index b786e75..eca7d38 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -366,6 +366,5 @@ def run(gl, what, action, args, verbose, output, fields): printer.display(get_dict(data, fields), verbose=verbose, obj=data) elif isinstance(data, six.string_types): print(data) - else: - # We assume we got bytes + elif hasattr(data, 'decode'): print(data.decode()) |