Private GIT

Skip to content
Snippets Groups Projects
Commit 1ab379e6 authored by miigotu's avatar miigotu
Browse files

Merge pull request #410 from fernandog/update_notification

Avoid crash update process if notification fails
parents 04b144e7 5fab3d65
No related branches found
No related tags found
No related merge requests found
......@@ -642,8 +642,10 @@ class GitUpdateManager(UpdateManager):
# Notify update successful
if sickbeard.NOTIFY_ON_UPDATE:
try:
notifiers.notify_git_update(sickbeard.CUR_COMMIT_HASH if sickbeard.CUR_COMMIT_HASH else "")
except Exception:
logger.log(u"Unable to send update notification. Continuing the update process", logger.DEBUG)
return True
else:
......@@ -885,8 +887,10 @@ class SourceUpdateManager(UpdateManager):
return False
# Notify update successful
try:
notifiers.notify_git_update(sickbeard.NEWEST_VERSION_STRING)
except Exception:
logger.log(u"Unable to send update notification. Continuing the update process", logger.DEBUG)
return True
@staticmethod
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment