"django/core/handlers/exception.py", line 34, in inner', ' File "django/core/handlers/base.py", line 115, in _get_response', ' File "django/core/handlers/base.py", line 113, in _get_response', ' File "python3.7/contextlib.py", line 74, in inner', ' File "django/views/decorators/csrf.py", line 54, in wrapped_view', ' File "rest_framework/viewsets.py", line 114, in view', ' File "rest_framework/views.py", line 505, in dispatch', ' File "rest_framework/views.py", line 465, in handle_exception', ' File "rest_framework/views.py", line 476, in raise_uncaught_exception', ' File "rest_framework/views.py", line 502, in dispatch', ' File "organization/views.py", line 154, in list', ' File "django/db/models/query.py", line 274, in __iter__', ' File "django/db/models/query.py", line 1242, in _fetch_all', ' File "django/db/models/query.py", line 55, in __iter__', ' File "django/db/models/sql/compiler.py", line 1120, in execute_sql', ' File "django/db/models/sql/compiler.py", line 489, in as_sql', ' File "django/db/models/sql/compiler.py", line 405, in compile', ' File "django/db/models/sql/where.py", line 81, in as_sql', ' File "django/db/models/sql/compiler.py", line 405, in compile', ' File "django/db/models/lookups.py", line 163, in as_sql', ' File "django/db/models/lookups.py", line 260, in process_rhs', ' File "django/db/models/lookups.py", line 95, in process_rhs', ' File "django/db/models/lookups.py", line 187, in get_db_prep_lookup', ' File "django/db/models/fields/__init__.py", line 2333, in get_db_prep_value', ' File "django/db/models/fields/__init__.py", line 2348, in to_python']
Вопрос скорее в том, почему я оборачиваю ошибку в try..except, а она все же пробрасывается выше?
dpaste.de в следующий раз, ок?
Крч ты вместо uuid кидаешь стринг
Обсуждают сегодня