mirror of
https://github.com/9001/copyparty.git
synced 2025-09-30 13:42:27 -06:00
reindent: try/catch subchunk logic;
ensures chunks get unlocked on throw
reindent of fc8298c468
This commit is contained in:
parent
b136a5b042
commit
38df223b8f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue