Call init() in _getencoder()

This commit is contained in:
Mattijs Ugen 2022-02-18 14:13:25 +01:00
parent dd030343b8
commit 74dbebfd1a

View File

@ -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: