From b1ff1910a3370c9da6a06c1dab9f8ceb5ba95a22 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 3 Sep 2020 11:47:28 -0400 Subject: [PATCH] Fix git.ensure_user_webhooks Typo had the unensure function overwrite the ensure function, the end result being that everyone's webhooks were removed -_- --- hubsrht/services.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hubsrht/services.py b/hubsrht/services.py index 7b009be..d1297af 100644 --- a/hubsrht/services.py +++ b/hubsrht/services.py @@ -164,9 +164,12 @@ class GitService(SrhtService): } ensure_webhooks(user, f"{_gitsrht}/api/user/webhooks", config) - def ensure_user_webhooks(self, user): + def unensure_user_webhooks(self, user): config = { } - ensure_webhooks(user, f"{_gitsrht}/api/user/webhooks", config) + try: + ensure_webhooks(user, f"{_gitsrht}/api/user/webhooks", config) + except: + pass # nbd, upstream was probably deleted def ensure_repo_webhooks(self, repo): config = {