Skip to content

Commit 9240de9

Browse files
SjordByron
authored andcommitted
Rename exception to error, raise_on_error to raise_if_error
1 parent 1481e71 commit 9240de9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: git/remote.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ def __new__(cls) -> 'IterableList[IterableObj]':
122122

123123
def __init__(self) -> None:
124124
super().__init__('push_infos')
125-
self.exception = None
125+
self.error = None
126126

127-
def raise_on_error(self):
127+
def raise_if_error(self):
128128
"""
129129
Raise an exception if any ref failed to push.
130130
"""
131-
if self.exception:
132-
raise self.exception
131+
if self.error:
132+
raise self.error
133133

134134

135135
class PushInfo(IterableObj, object):
@@ -819,7 +819,7 @@ def stdout_handler(line: str) -> None:
819819
raise
820820
elif stderr_text:
821821
log.warning("Error lines received while fetching: %s", stderr_text)
822-
output.exception = e
822+
output.error = e
823823

824824
return output
825825

0 commit comments

Comments
 (0)