A social pastebin built on atproto.
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

handle exception in authed_pds_request

+5 -1
+5 -1
main.py
··· 242 242 did = g.user["did"] 243 243 url = f"{pds_url}/xrpc/{path}" 244 244 245 - resp = pds_authed_req(method, url, user=g.user, db=get_db(), body=body) 245 + try: 246 + resp = pds_authed_req(method, url, user=g.user, db=get_db(), body=body) 247 + except Exception: 248 + flash("Request timed out. Try again.", "error") 249 + return redirect(request.referrer or url_for("index")) 246 250 247 251 if resp.status_code == 401: # type: ignore[union-attr] 248 252 client_id, _ = compute_client_id(request.url_root)