We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78e5b7a commit e17d0cdCopy full SHA for e17d0cd
readthedocs/oauth/services/github.py
@@ -207,6 +207,13 @@ def setup_webhook(self, project):
207
log.info('GitHub webhook creation successful for project: %s',
208
project)
209
return (True, resp)
210
+ elif resp.status_code in [401, 403, 404]:
211
+ log.info(
212
+ 'GitHub project does not exist or user does not have '
213
+ 'permissions: project=%s',
214
+ project,
215
+ )
216
+ return (False, resp)
217
# Catch exceptions with request or deserializing JSON
218
except (RequestException, ValueError):
219
log.exception(
0 commit comments