Traceback (most recent call last):
File "/procedure/prozorro_sale/procedure/errors.py", line 70, in request_errors_middleware
return await handler(request)
File "/usr/local/lib/python3.8/site-packages/prozorro_sale/auth/__init__.py", line 67, in context_middleware
return await handler(request)
File "/usr/local/lib/python3.8/site-packages/prozorro_sale/auth/__init__.py", line 74, in access_middleware
return await check_access(handler)(request)
File "/usr/local/lib/python3.8/site-packages/prozorro_sale/auth/__init__.py", line 83, in handler
return await func(request, *args, **kwargs)
File "/procedure/prozorro_sale/procedure/utils.py", line 82, in accept_language_middleware
return await handler(request)
File "/usr/local/lib/python3.8/site-packages/prozorro_sale/tools/__init__.py", line 68, in retry_on_concurrency_error_middleware
return await handler(request)
File "/usr/local/lib/python3.8/site-packages/prozorro_sale/tools/__init__.py", line 54, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/prozorro_sale/tools/__init__.py", line 32, in request_unpack_params
return await handler(request, **request.match_info)
File "/usr/local/lib/python3.8/site-packages/prozorro_sale/tools/__init__.py", line 93, in handler
return await func(request, *args, **kwargs)
File "/procedure/prozorro_sale/procedure/api.py", line 394, in delete_procedure_document
procedure.delete_document(doc_id, request._context)
File "/procedure/prozorro_sale/procedure/roles.py", line 17, in handler
return func(*args, **kwargs)
File "/procedure/prozorro_sale/procedure/state_machine/states.py", line 123, in delete_document
self.procedure.documents.pop(doc_id)
KeyError: '38dc659fd7cf438c8aff9f032cb1e4a2'
[2020-07-23T14:37:52 +0000] | aiohttp.access | INFO - "176.105.99.202 DELETE /api/procedures/5f1969ccc280b4313752f095/documents/38dc659fd7cf438c8aff9f032cb1e4a2?acc_token=%23censored%23 HTTP/1.1 500 264 - Yii2-Curl-Agent 0.003536 " | X-Request-ID: 88b99ddc-eb08-4cbe-a368-f597db22c37f