]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: do not raise StopIteration within generator 25400/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 4 Dec 2018 20:00:38 +0000 (15:00 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 4 Dec 2018 20:00:38 +0000 (15:00 -0500)
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>
src/ceph.in

index 29ac6a194307d3901f70861e338a1dcd20d24aaa..ffde044793575ec6314a9de7a244438e7f1a3654 100755 (executable)
@@ -463,8 +463,6 @@ def wrap(s, width, indent):
 
             yield result
 
-    raise StopIteration
-
 
 def format_help(cmddict, partial=None):
     """