Skip to content

Conversation

@cekk
Copy link
Member

@cekk cekk commented Jan 14, 2026

Force portal_type in catalog query and do not broke trying to get bando_view

@cekk cekk requested a review from mamico January 14, 2026 09:25
return view.getBandoState()
try:
return view.getBandoState()
except InvalidParameterError:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in quali casi hai potenzialmente questo errore? aggiungi un commento per spiegarlo

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se uno forza portal_type diverso da Bando, ha come risultati oggetti che non sono Bando e che non hanno quindi quella vista

Copy link
Member

@mamico mamico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a parte il commento che aggiungerei sul try/except per me ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants