diff options
author | Michael Käufl <michael-k@users.noreply.github.com> | 2018-09-10 21:36:40 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2018-10-21 12:24:21 +0200 |
commit | c49ba433b3ff5960925bd405950aae9306be378b (patch) | |
tree | 3bc75b9a7177ef3a97201f2e700dc97b126a6747 /git/objects/submodule/base.py | |
parent | 8fc6563219017354bdfbc1bf62ec3a43ad6febcb (diff) | |
download | gitpython-c49ba433b3ff5960925bd405950aae9306be378b.tar.gz |
The proper way is return, not raise StopIteration
See PEP 479[1] which is part of Python 3.7[2].
[1]: https://www.python.org/dev/peps/pep-0479/
[2]: https://docs.python.org/3/whatsnew/3.7.html#changes-in-python-behavior
Diffstat (limited to 'git/objects/submodule/base.py')
-rw-r--r-- | git/objects/submodule/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index f37da34a..446c88fc 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -1160,7 +1160,7 @@ class Submodule(IndexObject, Iterable, Traversable): try: parser = cls._config_parser(repo, pc, read_only=True) except IOError: - raise StopIteration + return # END handle empty iterator rt = pc.tree # root tree |