Commit b5f0c5a
authored
fix: initialize results and failed_count before directory check in import functions (#178)
All _import_* functions now initialize results=[] and failed_count=0 before
checking if directory exists. This prevents UnboundLocalError when importing
partial exports that don't include all resource types.
Fixed functions:
- _import_catalog: Added results=[] and failed_count=0
- _import_plugins: Added results=[] and failed_count=0
- _import_scorecards: Added results=[] and failed_count=0
- _import_workflows: Added results=[] and failed_count=0
Fixes #1711 parent d7e6963 commit b5f0c5a
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| 475 | + | |
| 476 | + | |
475 | 477 | | |
476 | 478 | | |
477 | 479 | | |
| |||
507 | 509 | | |
508 | 510 | | |
509 | 511 | | |
| 512 | + | |
| 513 | + | |
510 | 514 | | |
511 | 515 | | |
512 | 516 | | |
| |||
543 | 547 | | |
544 | 548 | | |
545 | 549 | | |
| 550 | + | |
| 551 | + | |
546 | 552 | | |
547 | 553 | | |
548 | 554 | | |
| |||
579 | 585 | | |
580 | 586 | | |
581 | 587 | | |
| 588 | + | |
| 589 | + | |
582 | 590 | | |
583 | 591 | | |
584 | 592 | | |
| |||
0 commit comments