Skip to content

Commit b1de37a

Browse files
committed
fixed asyncio test
1 parent 997899f commit b1de37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lms/models/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def avatars_handler(form_picture: FileStorage, filename: str):
7676

7777
def delete_previous_avatar(avatar_name: str) -> None:
7878
avatar_path = avatars_path / avatar_name
79-
avatar_path.unlink()
79+
avatar_path.unlink(missing_ok=True)
8080

8181

8282
def join_public_course(course: Course, user: User) -> None:

0 commit comments

Comments
 (0)