mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-20 04:04:45 +03:00
Call init() in _getencoder()
This commit is contained in:
parent
dd030343b8
commit
74dbebfd1a
|
@ -403,6 +403,9 @@ def _getdecoder(mode, decoder_name, args, extra=()):
|
|||
elif not isinstance(args, tuple):
|
||||
args = (args,)
|
||||
|
||||
if _initialized < 2:
|
||||
init()
|
||||
|
||||
try:
|
||||
decoder = DECODERS[decoder_name]
|
||||
except KeyError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user