Project

General

Profile

Bug #68973

astech: erreur dans le endpoint companies (AttributeError: 'list' object has no attribute 'items')

Added by Sentry Io 5 months ago. Updated 5 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12 September 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/94019/

AttributeError: 'list' object has no attribute 'items'
  File "passerelle/utils/jsonresponse.py", line 129, in api
    resp = f(*args, **kwargs)
  File "passerelle/views.py", line 551, in perform
    result = self.endpoint(request, **params)
  File "passerelle/apps/astech/models.py", line 308, in companies
    companies = [{'id': str(key), 'text': value} for key, value in companies.items()]

Error occurred while processing request

History

#1

Updated by Lauréline Guérin 5 months ago

  • Project changed from Suivi des traces to Passerelle
  • Subject changed from AttributeError: 'list' object has no attribute 'items' to astech: erreur dans le endpoint companies (AttributeError: 'list' object has no attribute 'items')

Also available in: Atom PDF