Skip to content

Commit d5a03ae

Browse files
authored
Fail transfer when upstream does not have it (#137)
* fail transfer when upstream does not have it * reverting wrong changes
1 parent 505f7bd commit d5a03ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

librarian_background/hypervisor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ def handle_stale_incoming_transfer(
239239
)
240240

241241
source_status = response.source_transfer_status[transfer.source_transfer_id]
242+
if source_status is None:
243+
raise ValueError("No status found for transfer")
242244
except Exception as e:
243245
logger.error(
244246
"Unsuccessfully tried to contact {} for information on transfer "

0 commit comments

Comments
 (0)