From: Claromes Date: Sun, 19 Nov 2023 17:15:31 +0000 (-0300) Subject: add Internet Archive HTTPError msg X-Git-Url: https://git.claromes.com/?a=commitdiff_plain;h=d7bfdc66af864c63ad818227f7087fe247168eda;p=waybacktweets.git add Internet Archive HTTPError msg --- diff --git a/app.py b/app.py index 539b087..fc6b829 100644 --- a/app.py +++ b/app.py @@ -173,6 +173,13 @@ def query_api(handle, limit, offset, saved_at): st.error('Failed to establish a new connection with web.archive.org.') except UnboundLocalError: st.empty() + except requests.exceptions.HTTPError: + st.error(''' + **Temporarily Offline** + + Internet Archive services are temporarily offline. Please check Internet Archive [Twitter feed](https://twitter.com/internetarchive/) for the latest information. + ''') + st.stop() @st.cache_data(ttl=1800, show_spinner=False) def parse_links(links):