reindent: try/catch subchunk logic;

ensures chunks get unlocked on throw

reindent of fc8298c468
This commit is contained in:
ed 2025-09-23 19:35:21 +00:00
parent b136a5b042
commit 38df223b8f

View file

@ -2836,6 +2836,7 @@ class HttpCli(object):
bail1 = False # used in sad path to avoid contradicting error-text
treport = time.time() # ratelimit up2k reporting to reduce overhead
try:
if "x-up2k-subc" in self.headers:
sc_ofs = int(self.headers["x-up2k-subc"])
chash = chashes[0]
@ -2880,7 +2881,6 @@ class HttpCli(object):
hasher = None
final_subchunk = True
try:
if self.args.nw:
path = os.devnull