Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evitar erro de ausência de histórico do periódico #188

Open
robertatakenaka opened this issue Oct 6, 2024 · 0 comments
Open

Evitar erro de ausência de histórico do periódico #188

robertatakenaka opened this issue Oct 6, 2024 · 0 comments
Labels

Comments

@robertatakenaka
Copy link
Member

Descrição da tarefa

Evitar erro de ausência de histórico do periódico

ERROR:root:list index out of range
Traceback (most recent call last):
  File "/app/opac/webapp/main/views.py", line 2141, in journal
    journal = controllers.add_journal(payload)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/opac/webapp/controllers.py", line 1937, in add_journal
    journal = JournalFactory(data)
              ^^^^^^^^^^^^^^^^^^^^
  File "/app/opac/webapp/factory.py", line 87, in JournalFactory
    journal.current_status = metadata.get("status_history", [{}])[-1].get("status")
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant