Commit Graph

8 Commits

Author SHA1 Message Date
Andros Fenollosa
e8c77f3398
Add general exception
Co-authored-by: Dom Rodriguez <shymega@shymega.org.uk>
2023-07-06 18:17:37 +01:00
Andros Fenollosa
846de90642
Merge pull request #7 from shymega/shymega/prs/remove-unused-var
Remove unused variables, and duplicate assignments
2023-07-06 11:36:48 +02:00
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
Dom Rodriguez
3347b233de
Remove unused variables, and duplicate assignments
This commit removes an unused variable, and the duplicate assignments in
the main entrypoint.

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
2022-09-13 19:30:36 +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