Commit edae491
If a file/key is missing when importing an archive, the `open` method in
`ZipfileBackendRepository` fails with an `UnboundLocalError` because the
`handle` variable is referenced before assignment.
This was initially discovered when working on the following issue on
discourse: https://aiida.discourse.group/t/error-archive-import/696
(cherry picked from commit 166d06c)
1 parent f0132dd commit edae491
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
450 | | - | |
| 451 | + | |
| 452 | + | |
451 | 453 | | |
452 | 454 | | |
453 | 455 | | |
| |||
0 commit comments