diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-04-18 13:38:37 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-04-18 13:38:37 +0100 |
commit | 10d04a2027fa6431ea69238e236f6ca75562e985 (patch) | |
tree | 640a6f1800ebd3666758c1df05d17c4c0ca568d0 /scripts | |
parent | 8f7dff19e67f15775bfea662594e719ece15989c (diff) |
retracediff: Avoid WindowsError 5 Access is denied, when exiting.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/retracediff.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/retracediff.py b/scripts/retracediff.py index 413ecac8..171622d0 100755 --- a/scripts/retracediff.py +++ b/scripts/retracediff.py @@ -269,9 +269,17 @@ def main(): highligher.flush() finally: - src_proc.terminate() + try: + src_proc.terminate() + except OSError: + # Avoid http://bugs.python.org/issue14252 + pass finally: - ref_proc.terminate() + try: + ref_proc.terminate() + except OSError: + # Avoid http://bugs.python.org/issue14252 + pass if __name__ == '__main__': |