Oh no, please do not do this here!

Can you do this in the try, except block in the import?
this is way to mangled, if we drop 2.4 later, and remove the import, this code can be forgotten.

please please do all of this just under the import line