Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9240de9

Browse files
SjordByron
authored andcommitted
Rename exception to error, raise_on_error to raise_if_error
1 parent1481e71 commit9240de9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎git/remote.py

Lines changed: 5 additions & 5 deletions
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-
defraise_on_error(self):
127+
defraise_if_error(self):
128128
"""
129129
Raise an exception if any ref failed to push.
130130
"""
131-
ifself.exception:
132-
raiseself.exception
131+
ifself.error:
132+
raiseself.error
133133

134134

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

824824
returnoutput
825825

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp