Queer European MD passionate about IT
소스 검색

Do not check file_path if it is None (again)

Davte 5 년 전
부모
커밋
a95d0aaa91
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/client.py

+ 1 - 1
src/client.py

@@ -437,7 +437,7 @@ def main():
         action = get_action(
             input("Do you want to (R)eceive or (S)end a file?\t\t")
         )
-    if (
+    if file_path is not None and (
             (action == 'send'
              and not os.path.isfile(os.path.abspath(file_path)))
             or (action == 'receive'