Commit fa8cec30 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

maximum peoplefinder wait if cannot request

parent ef0f8fcb
......@@ -31,7 +31,7 @@ def pfinfo(uname):
base_url = settings.PF_URL
url = base_url + "basic/all/" + str(uname)
try:
metadata = requests.get(url)
metadata = requests.get(url, timeout=5)
print("Retrieving information from the peoplefinder api.")
metadata.raise_for_status()
except requests.exceptions.RequestException as e:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment