From a95d0aaa91b64fde1da07e095b9266ed0cd909e3 Mon Sep 17 00:00:00 2001 From: Davte Date: Sun, 12 Apr 2020 10:51:50 +0200 Subject: [PATCH] Do not check file_path if it is None (again) --- src/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.py b/src/client.py index c286d2b..be0d87c 100644 --- a/src/client.py +++ b/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'