Commit Graph

5 Commits

Author SHA1 Message Date
Andros Fenollosa
758733d025
Merge pull request #6 from shymega/shymega/prs/exceptions
Improve Exception handling, and catch explicit Exceptions
2023-05-16 16:36:22 +02:00
Dom Rodriguez
52ccc2e676
Explicitly define the return type of get_url_from_feed(config)
This commit explicitly defines the return type of the
get_url_from_feed(config) function.

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
2022-09-13 20:19:03 +01:00
Dom Rodriguez
df52406dfe
Improve Exception handling, and catch explicit Exceptions
This commit improves Exception handling, and made some changes to
try/catch blocks, where the `KeyError` is now explicitly caught. If in
the future, we have reports of other Exceptions being caught, we can
include those in the handling.

For now, I've used BaseException for two try/catch blocks. I need to
check what exceptions can happen there.

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
2022-09-13 19:43:58 +01:00
Andros Fenollosa
43b9a1e3b0 Update config 2022-06-19 18:24:55 +02:00
Andros Fenollosa
5edf3eeda1 First commit 2022-06-19 18:17:57 +02:00