AndreasReitberger / KlipperRestApiSharp

A C# based library to communicate with a klipper using Moonraker as WebApi base.
https://andreas-reitberger.de/datenbanken-softwareloesungen/nugets/klipperrestapisharp/
Apache License 2.0
14 stars 2 forks source link

Don't throw an exception on missing database namespaces defaultly #52

Closed AndreasReitberger closed 1 year ago

AndreasReitberger commented 1 year ago

For now, the method GetDatabaseItemAsync() throws an exception if the requested key is not found in the available namespaces. However this leads to a huge reporting in AppCenter. Mostly the webcams key is missing because no webcam is defined. However, that's not an issue so we should not throw an ArgumentOutOfRangeException by default.