summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-04-18 13:38:37 +0100
committerJosé Fonseca <jfonseca@vmware.com>2013-04-18 13:38:37 +0100
commit10d04a2027fa6431ea69238e236f6ca75562e985 (patch)
tree640a6f1800ebd3666758c1df05d17c4c0ca568d0 /scripts
parent8f7dff19e67f15775bfea662594e719ece15989c (diff)
retracediff: Avoid WindowsError 5 Access is denied, when exiting.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/retracediff.py12
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__':