From 269d81fd9390a604428e02bbf632ec719fb608e1 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Fri, 10 Jul 2020 14:32:59 +0200 Subject: [PATCH] Check existence --- tools/snap/build_remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/snap/build_remote.py b/tools/snap/build_remote.py index fbacf7a8d..d0ec58685 100644 --- a/tools/snap/build_remote.py +++ b/tools/snap/build_remote.py @@ -36,7 +36,7 @@ def _build_snap(target, archs): for arch in archs: status[arch] = None build_file = join(workspace, '{0}_{1}.txt'.format(target, arch)) - if build_file: + if exists(build_file): with open(build_file) as file_h: build_output = file_h.read()