Skip to content

AttributeError when "Wizyta dodatkowa" is shown instead of doctor name #14

@YozenPL

Description

@YozenPL

Image

$ docker run --rm --env-file=.env mediczuwacz find-appointment -r 203 -s 198

--------------------------------------------------
New appointments found:
--------------------------------------------------
Date: 2025-04-23T10:00:00
  Clinic: Centrum Medicover Chorzowska
  Doctor: --- Alicja
  Specialty: Okulista dorośli
  Languages: Polski
--------------------------------------------------
Date: 2025-04-23T14:00:00
  Clinic: Centrum Medicover Żelazna
  Doctor: --- Agata
  Specialty: Okulista dorośli
  Languages: Polski
--------------------------------------------------
Traceback (most recent call last):
  File "/app/./mediczuwacz.py", line 305, in <module>
    main()
  File "/app/./mediczuwacz.py", line 281, in main
    display_appointments(new_appointments)
  File "/app/./mediczuwacz.py", line 213, in display_appointments
    doctor = appointment.get("doctor", {}).get("name", "N/A")
AttributeError: 'NoneType' object has no attribute 'get'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions