Skip to content

Commit

Permalink
fix timeout exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Knispel2 committed Jun 25, 2024
1 parent 00e9fab commit 045c858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fink_filters/filter_anomaly_notification/filter_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ def get_OID(ra, dec):
out: str
ZTF DR OID
'''

r = requests.get(
url=f'http://db.ztf.snad.space/api/v3/data/latest/circle/full/json?ra={ra}&dec={dec}&radius_arcsec=1',
timeout=5
url=f'http://db.ztf.snad.space/api/v3/data/latest/circle/full/json?ra={ra}&dec={dec}&radius_arcsec=1'
)
if not status_check(r, 'get cross from snad'):
return None
Expand Down

0 comments on commit 045c858

Please sign in to comment.