Skip to content

Commit

Permalink
Fixes #12732: destination must be a list (#12746) (#12747)
Browse files Browse the repository at this point in the history
even for a single file, the destination must be a list not a string

(cherry picked from commit 993364a)

Co-authored-by: mattiagiupponi <[email protected]>
  • Loading branch information
github-actions[bot] and mattiagiupponi authored Nov 26, 2024
1 parent 3a3c061 commit 27476dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def handle(self, **options):
logger.info("Updating location field with new folder value")

if len(asset.location) == 1:
asset.location = dest
asset.location = [dest]
else:
asset.location = [x.replace(source, dest) for x in asset.location]
asset.save()
Expand Down

0 comments on commit 27476dc

Please sign in to comment.