mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed issue with missing consistency check files
This commit is contained in:
parent
7c80256c7d
commit
725d2308b1
@ -99,14 +99,11 @@ def consistentRulestate(folder,checksums):
|
||||
if (scrobblefile.endswith(".tsv")):
|
||||
|
||||
try:
|
||||
f = open(folder + "/" + scrobblefile + ".rulestate","r")
|
||||
if f.read() != checksums:
|
||||
return False
|
||||
|
||||
with open(folder + "/" + scrobblefile + ".rulestate","r") as f:
|
||||
if f.read() != checksums:
|
||||
return False
|
||||
except:
|
||||
return False
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user