fix: don't copy file modes (#8867)

This commit is contained in:
Marie Ramlow authored and GitHub committed 2026-10-25 14:03:30 +00:00
1 parent 116512c38d
commit 0b2801bfb4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ class RepositoryUsers(GroupRepositoryGeneric[PrivateUser, User]):
users_assets.img_random_3,
]
random_image = random.choice(all_images)
shutil.copy(random_image, new_user.directory() / "profile.webp")
shutil.copyfile(random_image, new_user.directory() / "profile.webp")
return new_user
+1 -1
View File
@@ -233,7 +233,7 @@ class OpenAIService(BaseService):
try:
with get_temporary_path() as temp_path:
image_path = temp_path / "recipe-image.jpg"
shutil.copy(self.TESTING_DIR / "recipe-image.jpg", image_path)
shutil.copyfile(self.TESTING_DIR / "recipe-image.jpg", image_path)
response = await self.ping(
provider,