Skip to content

Library ends program execution upon error instead of throwing exception #64

@lukemat-clear

Description

@lukemat-clear

Describe the bug
When the code in utils.py encounters an error it just stops the program execution instead of throwing an exception or printing an error like standard libraries do.

To Reproduce
Steps to reproduce the behavior:

  1. Pass an invalid or incorrectly formatted JSON file to any function in utils.py (e.g. readfromstring, readfromjson)
  2. The program will stop running completely.=

Expected behavior
When an error or exception is encountered, throw an exception for the caller to catch instead of exiting the program.

Desktop (please complete the following information):
N/A - irrelevant

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions