From 019bc87eb0c7336ee04d97c3f7c46ff9c0c2e450 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 12 Mar 2023 18:38:00 +0000 Subject: [PATCH] Fix sense of file_is_unreadable() --- app/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers.py b/app/helpers.py index 3ee345e..c0fd1aa 100644 --- a/app/helpers.py +++ b/app/helpers.py @@ -61,9 +61,9 @@ def file_is_unreadable(path: Optional[str]) -> bool: """ if not path: - return False + return True - return os.access(path, os.R_OK) + return not os.access(path, os.R_OK) def get_audio_segment(path: str) -> Optional[AudioSegment]: