mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Catch error when done reading files
This commit is contained in:
parent
df623d83da
commit
07d5287f42
@ -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")):
|
||||
|
Loading…
Reference in New Issue
Block a user