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")):
|
if (scrobblefile.endswith(".tsv")):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f = open(folder + "/" + scrobblefile + ".rulestate","r")
|
with open(folder + "/" + scrobblefile + ".rulestate","r") as f:
|
||||||
if f.read() != checksums:
|
if f.read() != checksums:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
finally:
|
|
||||||
f.close()
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user