@@ -344,6 +344,7 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
344
344
345
345
# Modify TIMEOUT attribute if necessary (usually this is modified for large requests)
346
346
if timeout :
347
+ default_timeout = self ._get_default_timeout ()
347
348
self ._service_api_connection .TIMEOUT = timeout
348
349
log .info (f"Request timeout upper limit is being changed to { self ._service_api_connection .TIMEOUT } "
349
350
" seconds." )
@@ -420,7 +421,7 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
420
421
localpath_table ['Local Path' ] = [path + x for x in cutout_files ]
421
422
422
423
if timeout :
423
- self ._service_api_connection .TIMEOUT = self . _get_default_timeout ()
424
+ self ._service_api_connection .TIMEOUT = default_timeout
424
425
425
426
return localpath_table
426
427
@@ -487,6 +488,7 @@ def get_cutouts(self, *, coordinates=None, size=5, product='SPOC', sector=None,
487
488
488
489
# Modify TIMEOUT attribute if necessary (usually this is modified for large requests)
489
490
if timeout :
491
+ default_timeout = self ._get_default_timeout ()
490
492
self ._service_api_connection .TIMEOUT = timeout
491
493
log .info (f"Request timeout upper limit is being changed to { self ._service_api_connection .TIMEOUT } "
492
494
" seconds." )
@@ -563,7 +565,7 @@ def get_cutouts(self, *, coordinates=None, size=5, product='SPOC', sector=None,
563
565
cutout_hdus_list [- 1 ].filename = name
564
566
565
567
if timeout :
566
- self ._service_api_connection .TIMEOUT = self . _get_default_timeout ()
568
+ self ._service_api_connection .TIMEOUT = default_timeout
567
569
568
570
return cutout_hdus_list
569
571
0 commit comments