Fixed missing raise introduced by 57a41897493e3b11fbbe47360a9d2f1033aae87d (fixes resumable download test failures)