Queer European MD passionate about IT
Explorar o código

Do not check file_path if it is None (again)

Davte %!s(int64=5) %!d(string=hai) anos
pai
achega
a95d0aaa91
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'