File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/aiida/cmdline/commands Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -651,6 +651,10 @@ def process_dump(
651
651
echo .echo_warning (msg )
652
652
return
653
653
654
+ if dry_run :
655
+ echo .echo_success ('Dry run completed.' )
656
+ return
657
+
654
658
# Execute dumping
655
659
process .dump (
656
660
output_path = dump_base_output_path ,
@@ -664,11 +668,9 @@ def process_dump(
664
668
dump_unsealed = dump_unsealed ,
665
669
)
666
670
667
- if not dry_run :
668
- msg = f'Raw files for process `{ process .pk } ` dumped into folder `{ dump_base_output_path .name } `.'
669
- echo .echo_success (msg )
670
- else :
671
- echo .echo_success ('Dry run completed.' )
671
+
672
+ msg = f'Raw files for process `{ process .pk } ` dumped into folder `{ dump_base_output_path .name } `.'
673
+ echo .echo_success (msg )
672
674
673
675
except ExportValidationError as e :
674
676
echo .echo_critical (f'Data validation error during dump: { e !s} ' )
You can’t perform that action at this time.
0 commit comments