🐛 warnings.warning => warnings.warn
This commit is contained in:
1 parent
0a9e9ef3a3
commit
2f630f69de
1 file changed
+1
-1
@@ -205,7 +205,7 @@ def fix_webassets_cache():
|
||||
|
||||
unpickled = webassets.cache.safe_unpickle(result)
|
||||
if unpickled is None:
|
||||
warnings.warning('Ignoring corrupted cache file %s' % filename)
|
||||
warnings.warn('Ignoring corrupted cache file %s' % filename)
|
||||
return unpickled
|
||||
|
||||
cache.FilesystemCache.set = fixed_set
|
||||
|
||||
Reference in new issue
Block a user