Add logging and/or catch exceptions to the on_startup_names: i.e. for when it crashes due to no internet connection, and another for when still cannot get pokemon, and maybe if input is different format than expected
Alternatively, consider not making it a startup event, but rather an endpoint that gets triggered by a specific button (then, if it does not work, will not seem like whole app is not working) but will then have to disable everything (or at least something so crash for the other endpoints make sense).
Add logging and/or catch exceptions to the
on_startup_names
: i.e. for when it crashes due to no internet connection, and another for when still cannot get pokemon, and maybe if input is different format than expectedAlternatively, consider not making it a startup event, but rather an endpoint that gets triggered by a specific button (then, if it does not work, will not seem like whole app is not working) but will then have to disable everything (or at least something so crash for the other endpoints make sense).