Skip to content

Commit

Permalink
Fixes #12732: destination must be a list (#12746)
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
  • Loading branch information
mattiagiupponi authored Nov 26, 2024
1 parent 0b792cf commit 993364a
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 993364a

Please sign in to comment.