try:data=get_one({"name":"joe"})exceptConnectionError:# handle a ConnectionError
else:# if no exceptions were raised then the data is presumed to be good
do_something_with(data)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
this is preferable