summaryrefslogtreecommitdiff
path: root/demoscript/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-09-20 13:22:51 +0200
committerBenoit Foucher <benoit@zeroc.com>2013-09-20 13:22:51 +0200
commit4ec061f4c207d57b87aa7742426b923755981d67 (patch)
tree98d9b77d7d776f2d4572aa2566be4dd87454c506 /demoscript/Util.py
parentminor fix to upgrade VS2012 demo projects (diff)
downloadice-4ec061f4c207d57b87aa7742426b923755981d67.tar.bz2
ice-4ec061f4c207d57b87aa7742426b923755981d67.tar.xz
ice-4ec061f4c207d57b87aa7742426b923755981d67.zip
Minor fix to demoscripts Util.py, PATH fix for TestUtil.py
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r--demoscript/Util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py
index 0fab3417ac7..9817defb93d 100644
--- a/demoscript/Util.py
+++ b/demoscript/Util.py
@@ -148,7 +148,10 @@ class FileExpect(object):
return self.matchindex
def terminate(self):
- self.f.close()
+ try:
+ self.f.close()
+ except:
+ pass
self.r.join()
self.r = None