🐛 warnings.warning => warnings.warn

This commit is contained in:
Gina Häußge committed 2020-06-15 11:50:59 +02:00
1 parent 0a9e9ef3a3
commit 2f630f69de
1 file changed
+1 -1
+1 -1
View File
@@ -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