Fixed #22017 -- Prevented RuntimeError on Python 3
Refs #21049. Thanks quinox for the report.
This commit is contained in:
parent
eefc88feef
commit
e0381cdf2e
|
@ -81,7 +81,7 @@ def gen_filenames():
|
|||
Yields a generator over filenames referenced in sys.modules and translation
|
||||
files.
|
||||
"""
|
||||
filenames = [filename.__file__ for filename in sys.modules.values()
|
||||
filenames = [filename.__file__ for filename in list(sys.modules.values())
|
||||
if hasattr(filename, '__file__')]
|
||||
|
||||
if settings.USE_I18N:
|
||||
|
|
Loading…
Reference in New Issue