mrchainman / Gotify-Nextcloud

A python script that fetches notifications from the nextcloud talk api and pushes them to a gotify server.
GNU General Public License v2.0
11 stars 4 forks source link

Handle exception to prevent the script from crashing #5

Closed Kereltje closed 4 years ago

Kereltje commented 4 years ago

Ensure the script continues to run when errors occur like server unavailable or other communication errors. Optionally write these errors to a log file. Ensure a notification id is only marked as being pushed when the push operation encountered no errors.

Signed-off-by: Kereltje 13039713+Kereltje@users.noreply.github.com

mrchainman commented 4 years ago

Thanks a lot for the improvement, I will test it and if everything works as expected I'll merge the pull request.

mrchainman commented 4 years ago

@Kereltje I will merge the PR, just please remove the empty line at the beginning of push_msg.py, it breaks the possibility to automatically start it with python3.

Kereltje commented 4 years ago

@mrchainman sorry, was not intentional. It's fixed now. Many thanks for your project and accepting my contribution.