diff options
author | Sjoerd Langkemper <sjoerd-github@linuxonly.nl> | 2021-11-08 16:20:32 +0000 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-11-13 15:20:20 +0800 |
commit | 9240de9f788396c45199cd3d9fa7fdbd8a5666c4 (patch) | |
tree | 2874c8d226fc4b12d2d91aa075048216bf228d21 /git/remote.py | |
parent | 1481e7108fb206a95717c331478d4382cda51a6a (diff) | |
download | gitpython-9240de9f788396c45199cd3d9fa7fdbd8a5666c4.tar.gz |
Rename exception to error, raise_on_error to raise_if_error
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/git/remote.py b/git/remote.py index 63b4dc51..74543676 100644 --- a/git/remote.py +++ b/git/remote.py @@ -122,14 +122,14 @@ class PushInfoList(IterableList): def __init__(self) -> None: super().__init__('push_infos') - self.exception = None + self.error = None - def raise_on_error(self): + def raise_if_error(self): """ Raise an exception if any ref failed to push. """ - if self.exception: - raise self.exception + if self.error: + raise self.error class PushInfo(IterableObj, object): @@ -819,7 +819,7 @@ class Remote(LazyMixin, IterableObj): raise elif stderr_text: log.warning("Error lines received while fetching: %s", stderr_text) - output.exception = e + output.error = e return output |