set dataSaved when it should have already been
This commit is contained in:
parent
aaecd0adaf
commit
b4d61d3598
@ -166,8 +166,8 @@ class Core:
|
||||
dataHash = dataHash.decode()
|
||||
blockFileName = self.blockDataLocation + dataHash + '.dat'
|
||||
if os.path.exists(blockFileName):
|
||||
return # to do, properly check if block is already saved elsewhere
|
||||
raise Exception("Data is already set for " + dataHash)
|
||||
pass # to do, properly check if block is already saved elsewhere
|
||||
#raise Exception("Data is already set for " + dataHash)
|
||||
else:
|
||||
blockFile = open(blockFileName, 'w')
|
||||
blockFile.write(data.decode())
|
||||
|
Loading…
Reference in New Issue
Block a user