From aaf48566b71b784b5ba8f3e3347e4f82cb7d4827 Mon Sep 17 00:00:00 2001 From: Dany Robert Date: Thu, 9 Dec 2021 13:03:01 +0530 Subject: [PATCH] fix: PosixPath object has no attribute 'rstrip' --- bench/patches/v5/update_archived_sites.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/patches/v5/update_archived_sites.py b/bench/patches/v5/update_archived_sites.py index 0690e4e8..385a00ad 100644 --- a/bench/patches/v5/update_archived_sites.py +++ b/bench/patches/v5/update_archived_sites.py @@ -40,7 +40,7 @@ def execute(bench_path): os.makedirs(new_directory) for archived_site_path in old_directory.glob("*"): - shutil.move(archived_site_path, new_directory) + shutil.move(str(archived_site_path), str(new_directory)) click.secho(f"Archived sites are now stored under {new_directory}")