Skip to content

Commit ee853ad

Browse files
committed
1 parent a0dd0a7 commit ee853ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/PipelineStep_DownloadCats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import requests
1111
from astropy.coordinates import SkyCoord
1212
from astropy import units as u
13-
13+
from time import sleep
1414

1515
def sum_digits(n):
1616
s = 0
@@ -197,7 +197,7 @@ def my_lbcs_catalogue( ms_input, Radius=1.5, outfile='' ):
197197
try:
198198
response = requests.get(url, stream=True,verify=True,timeout=60)
199199
if response.status_code!=200:
200-
print response.headers
200+
print(response.headers)
201201
raise RuntimeError('Code was %i' % response.status_code)
202202
except requests.exceptions.ConnectionError:
203203
print 'Connection error! sleeping 30 seconds before retry...'

0 commit comments

Comments
 (0)