Skip to content

NotFoundError caused by timetable.get_current() #29

Description

@ex0r5-nyjc

Problem:
The timetable.get_current() method returns a NotFound Error.

Code used:

campus = Campus(timeout=30, mode="server")
curr = campus.api.timetable.get_current()

Result:

Traceback (most recent call last):
  File "/workspaces/nyxchange-timetable-v2/temptest.py", line 6, in <module>
    curr = campus.api.timetable.get_current()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/.cache/pypoetry/virtualenvs/nyxchange-timetable-v2-OC8lztqH-py3.11/lib/python3.11/site-packages/campus_python/api/v1/timetable.py", line 64, in get_current
    resp.raise_for_status()
  File "/home/vscode/.cache/pypoetry/virtualenvs/nyxchange-timetable-v2-OC8lztqH-py3.11/lib/python3.11/site-packages/campus_python/json_client/interface.py", line 104, in raise_for_status
    raise error from None
campus_python.errors.NotFoundError: Timetable not found

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions