-
-
Save siminino/70aefdfa6bd00efadcbbf6151469188c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner | |
response = get_response(request) | |
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response | |
response = self.process_exception_by_middleware(e, request) | |
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response | |
response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
File "/usr/local/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view | |
return view_func(*args, **kwargs) | |
File "/usr/local/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view | |
return self.dispatch(request, *args, **kwargs) | |
File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch | |
response = self.handle_exception(exc) | |
File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception | |
self.raise_uncaught_exception(exc) | |
File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception | |
raise exc | |
File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch | |
response = handler(request, *args, **kwargs) | |
File "/opt/milex/report/views/pdf.py", line 18, in get | |
name = service.get_pdf(user, id, buff) | |
File "/opt/milex/report/services/document.py", line 13, in get_pdf | |
doc_builder.build() | |
File "/opt/milex/report/services/pdf/pdf_builder.py", line 43, in build | |
self.setup() | |
File "/opt/milex/report/services/pdf/pdf_builder.py", line 58, in setup | |
layout = PdfLayoutClassic(pdfTrans) | |
File "/opt/milex/report/services/pdf/layout.py", line 66, in __init__ | |
super().__init__(pdf_translations, styles) | |
File "/opt/milex/report/services/pdf/layout.py", line 33, in __init__ | |
self.phone = pdf_translations["Phone"] | |
KeyError: 'Phone' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment