mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
ceph: do not raise StopIteration within generator
This is implicit when a generator exits and under Python 3 it results in a "StopIteration" exception being raised when "ceph --help" is run. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
c80882919c
commit
4fbb67203a
@ -463,8 +463,6 @@ def wrap(s, width, indent):
|
||||
|
||||
yield result
|
||||
|
||||
raise StopIteration
|
||||
|
||||
|
||||
def format_help(cmddict, partial=None):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user