Skip to content

Commit 5fd7c90

Browse files
committed
Rename exception to error, raise_on_error to raise_if_error
1 parent 6fc830a commit 5fd7c90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: git/remote.py

+4-4
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):

0 commit comments

Comments
 (0)