Skip to content

Commit

Permalink
Fix cache load warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Feb 5, 2015
1 parent c3aead7 commit 6ee0ec5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@
‹ |
\bSATION\b |
,\w |
\bINGLY\b
\bINGLY\b |
\bAU\sL[DO0]\b
)''', flags=re.X)


Expand Down Expand Up @@ -477,11 +479,13 @@ def ignoreOrWarn(error):
raise error
elif not quiet:
def ignoreOrWarn(error):
nonlocal warnings
error.category = "WARNING"
print(error)
warnings += 1
else:
def ignoreOrWarn(error):
nonlocal warnings
warnings += 1

DEBUG0, DEBUG1 = tdenv.DEBUG0, tdenv.DEBUG1
Expand Down

0 comments on commit 6ee0ec5

Please sign in to comment.