aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrahiel <rahiel@protonmail.ch>2015-10-19 19:18:59 +0200
committerrahiel <rahiel@protonmail.ch>2015-10-19 19:18:59 +0200
commit9316349b5d30523edf62b8f2ed6fd77c697dc4bd (patch)
tree4bb9be5c372693e22d03cb23215cc98f6a051924
parent412bca71750ac79beba723efcabf90c88c210144 (diff)
update to new error message
-rw-r--r--bismillah.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bismillah.py b/bismillah.py
index 6b4048b..75b1b2a 100644
--- a/bismillah.py
+++ b/bismillah.py
@@ -69,8 +69,8 @@ def main():
# ValueError: No JSON object could be decoded
sleep(3)
except telegram.TelegramError as e:
- if "HTTP Error 502" in e.message:
- # telegram.error.TelegramError: HTTP Error 502: Bad Gateway
+ if "Bad Gateway" in e.message:
+ # telegram.error.TelegramError: Bad Gateway
sleep(5)
else:
raise e