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

Commitd83f6e8

Browse files
committed
Make sure we ignore WindowsErrors too, in case the process is already dead
Fixes#140
1 parenta4b8e46 commitd83f6e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __del__(self):
103103
try:
104104
os.kill(self.proc.pid,2)# interrupt signal
105105
self.proc.wait()# ensure process goes away
106-
exceptOSError:
106+
except(OSError,WindowsError):
107107
pass# ignore error when process already died
108108
exceptAttributeError:
109109
# try windows

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp