From d7bfdc66af864c63ad818227f7087fe247168eda Mon Sep 17 00:00:00 2001 From: Claromes Date: Sun, 19 Nov 2023 14:15:31 -0300 Subject: [PATCH] add Internet Archive HTTPError msg --- app.py | 7 +++++++ 1 file changed, 7 insertions(+) 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): -- 2.34.1