Skip to content

Add a check to see if the URL parameters are present before getting them #45

@tayabsoomro

Description

@tayabsoomro

Current State
There are various instances in routes.py file where we are fetching the URL parameters without checking to see whether they exist. This causes the API to throw a python error which does not make sense.

Solution
In order to avoid that, we need to add various checks to ensure that the parameters that we are accessing actually do exist in the dictionary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fortificationThese issues are there to make the code more robust

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions