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

Commitdfa0eac

Browse files
benthayerByron
authored andcommitted
Added exception handling for WinError6
1 parent7493057 commitdfa0eac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎git/cmd.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,11 @@ def __del__(self):
365365
proc.stderr.close()
366366

367367
# did the process finish already so we have a return code ?
368-
ifproc.poll()isnotNone:
369-
return
368+
try:
369+
ifproc.poll()isnotNone:
370+
return
371+
exceptOSErrorasex:
372+
log.info("Ignored error after process had died: %r",ex)
370373

371374
# can be that nothing really exists anymore ...
372375
ifosisNoneorgetattr(os,'kill',None)isNone:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp