From 225d170387c8688ac21fc9eaa93eff0c36687b3e Mon Sep 17 00:00:00 2001 From: Matt Jarvis Date: Fri, 11 Aug 2017 12:16:29 +0100 Subject: [PATCH] Raise exception on 503 error --- meetup/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meetup/api.py b/meetup/api.py index 62983b9..01787bd 100644 --- a/meetup/api.py +++ b/meetup/api.py @@ -162,6 +162,8 @@ def _call(self, service_name, parameters=None, **kwargs): raise exceptions.HttpUnauthorized if response.status_code == 404: raise exceptions.HttpNotFoundError + if response.status_code == 503: + raise exceptions.HttpServerError # If we have two or less remaining calls in the period, wait (if the wait flag is set). # I tried only waiting after a 429 error, and ended getting locked out doing parallel testing.