aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-09-12 19:04:49 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-09-12 19:04:53 +0200
commite5fc6631b9ca452eaacc8f978b3c5ffe2ef38e77 (patch)
treeee50313473c4379a8e8530a9fd05e2e7b3aa4acd /contrib
parentb9307d2f55710cfc5f74bbc68c7e8db8091677e8 (diff)
parent07d5287f42ececa2e059724c7c5bba55c8658bc6 (diff)
Merge pull request #4896
07d5287 Catch error when done reading files (Suhas Daftuar)
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/linearize/linearize-data.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/linearize/linearize-data.py b/contrib/linearize/linearize-data.py
index 383bb38198..3b5d198c14 100755
--- a/contrib/linearize/linearize-data.py
+++ b/contrib/linearize/linearize-data.py
@@ -110,7 +110,11 @@ def copydata(settings, blkindex, blkset):
if not inF:
fname = "%s/blk%05d.dat" % (settings['input'], inFn)
print("Input file" + fname)
- inF = open(fname, "rb")
+ try:
+ inF = open(fname, "rb")
+ except IOError:
+ print "Done"
+ return
inhdr = inF.read(8)
if (not inhdr or (inhdr[0] == "\0")):