Skip to content

Commit

Permalink
Fixed issue with missing consistency check files
Browse files Browse the repository at this point in the history
  • Loading branch information
krateng committed Aug 17, 2019
1 parent 7c80256 commit 725d230
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions utilities.py
Expand Up @@ -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

Expand Down

0 comments on commit 725d230

Please sign in to comment.