HomeSoftware Heritage

Initialize 'status' before try block

Description

Initialize 'status' before try block

It seems that despite setting it in the 'except BaseException' block,
it is still occasionally undefined in the 'finally' block when
triggered by a SystemExit exception.

This should hopefully prevent UnboundLocalError from
being raised from the 'finally' block from now on

Details

Provenance
vlorentzAuthored on Aug 8 2022, 10:32 AM
vlorentzPushed on Aug 8 2022, 2:33 PM
Differential Revision
D8207: Initialize 'status' before try block
Parents
rDLDBASE0913e11f6991: docs: Mention caveats of using archive checksums as ExtID.
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task
Build Status
Buildable 30682
Build 47975: test-and-buildJenkins console · Jenkins