@@ -344,6 +344,7 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
344344
345345 # Modify TIMEOUT attribute if necessary (usually this is modified for large requests)
346346 if timeout :
347+ default_timeout = self ._get_default_timeout ()
347348 self ._service_api_connection .TIMEOUT = timeout
348349 log .info (f"Request timeout upper limit is being changed to { self ._service_api_connection .TIMEOUT } "
349350 " seconds." )
@@ -420,7 +421,7 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
420421 localpath_table ['Local Path' ] = [path + x for x in cutout_files ]
421422
422423 if timeout :
423- self ._service_api_connection .TIMEOUT = self . _get_default_timeout ()
424+ self ._service_api_connection .TIMEOUT = default_timeout
424425
425426 return localpath_table
426427
@@ -487,6 +488,7 @@ def get_cutouts(self, *, coordinates=None, size=5, product='SPOC', sector=None,
487488
488489 # Modify TIMEOUT attribute if necessary (usually this is modified for large requests)
489490 if timeout :
491+ default_timeout = self ._get_default_timeout ()
490492 self ._service_api_connection .TIMEOUT = timeout
491493 log .info (f"Request timeout upper limit is being changed to { self ._service_api_connection .TIMEOUT } "
492494 " seconds." )
@@ -563,7 +565,7 @@ def get_cutouts(self, *, coordinates=None, size=5, product='SPOC', sector=None,
563565 cutout_hdus_list [- 1 ].filename = name
564566
565567 if timeout :
566- self ._service_api_connection .TIMEOUT = self . _get_default_timeout ()
568+ self ._service_api_connection .TIMEOUT = default_timeout
567569
568570 return cutout_hdus_list
569571
0 commit comments