TemplateNotFound for ticket
everpcpc opened this issue · 0 comments
everpcpc commented
Internal error, please contact webadmin500: File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 159, in __call__ await self.app(scope, receive, _send) File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 82, in __call__ raise exc from None File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 71, in __call__ await self.app(scope, receive, sender) File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 550, in __call__ await route.handle(scope, receive, send) File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 227, in handle await self.app(scope, receive, send) File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 41, in app response = await func(request) File "/app/app/libs/rest.py", line 19, in _ ret = await func(*args, **kwargs) File "/app/app/views/api/index.py", line 128, in action ticket, msg = await action.run(provider, form, is_admin=is_admin) File "/app/app/models/action.py", line 110, in run await ticket_added.notify('request') File "/app/app/models/db/ticket.py", line 230, in notify title, content = render_notification('ticket_%s.html' % phase, context=dict(ticket=self, config=config)) File "/app/app/libs/template.py", line 87, in render_notification jinja_template = notification_templates.get_template(template) File "/app/app/libs/template.py", line 51, in get_template return self.env.get_template(name) File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 883, in get_template return self._load_template(name, self.make_globals(globals)) File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 857, in _load_template template = self.loader.load(self, name, globals) File "/usr/local/lib/python3.7/site-packages/jinja2/loaders.py", line 115, in load source, filename, uptodate = self.get_source(environment, name) File "/usr/local/lib/python3.7/site-packages/jinja2/loaders.py", line 197, in get_source raise TemplateNotFound(template)