3
0
Fork 0

fix: avoid error when loading installer templates

i guess 'poser:templates/install' throws a TypeError, not sure why i
was getting ModuleNotFoundError before..?
This commit is contained in:
Lance Edgar 2024-11-30 16:04:35 -06:00
parent d44fe15215
commit 47902b37bc

View file

@ -124,7 +124,7 @@ class InstallHandler(GenericHandler):
try:
paths.insert(0, self.app.resource_path(f'{self.pkg_name}:templates/install'))
except ModuleNotFoundError:
except (TypeError, ModuleNotFoundError):
pass
self.templates = TemplateLookup(directories=paths)