Closed tuxuser closed 2 years ago
Currently the config parser in backend/db unwraps the result of getting a particular config instance and fails hard/panics if not found.
Error:
The application panicked (crashed). Message: called `Option::unwrap()` on a `None` value Location: src/models/backend/db.rs:58
DB in question: hyperion_db.zip
Thise change ensures safer handling via matching against Some/None.
Thanks for the PR, good catch! I just ran cargo fmt and slightly reworded your commit before merging.
cargo fmt
Currently the config parser in backend/db unwraps the result of getting a particular config instance and fails hard/panics if not found.
Error:
DB in question: hyperion_db.zip
Thise change ensures safer handling via matching against Some/None.