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:
parent
d44fe15215
commit
47902b37bc
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue