summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Langkemper <sjoerd-github@linuxonly.nl>2021-11-08 16:20:32 +0000
committerSebastian Thiel <sebastian.thiel@icloud.com>2021-11-13 15:20:20 +0800
commit9240de9f788396c45199cd3d9fa7fdbd8a5666c4 (patch)
tree2874c8d226fc4b12d2d91aa075048216bf228d21
parent1481e7108fb206a95717c331478d4382cda51a6a (diff)
downloadgitpython-9240de9f788396c45199cd3d9fa7fdbd8a5666c4.tar.gz
Rename exception to error, raise_on_error to raise_if_error
-rw-r--r--git/remote.py10
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