From 20c7f46339a9576eeda409d6703177b4d5f0de92 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 10 Nov 2016 23:33:32 +0100 Subject: * only send to Goniec what exists --- src/bidding_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bidding_data.py b/src/bidding_data.py index e9d4588..4c4ffca 100644 --- a/src/bidding_data.py +++ b/src/bidding_data.py @@ -515,7 +515,8 @@ class JFRBidding(object): + path.sep files_to_send = [file_to_send.replace(working_directory, '', 1) for file_to_send in files_to_send - if file_to_send.startswith(working_directory)] + if file_to_send.startswith(working_directory) + and path.exists(file_to_send)] try: goniec_socket = socket.socket() goniec_socket.connect(( -- cgit v1.2.3