From c824d9c46b177df17b3a803d4b451c2cbde7f4de Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sat, 10 Feb 2018 03:11:53 +0100 Subject: [PATCH] Bugfix with S3_URLs detection. --- tcllib/requests/tclresult.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcllib/requests/tclresult.py b/tcllib/requests/tclresult.py index 90735d9..7899b4d 100644 --- a/tcllib/requests/tclresult.py +++ b/tcllib/requests/tclresult.py @@ -44,7 +44,7 @@ class DownloadResult(TclResult): self.fileurl = file.find("DOWNLOAD_URL").text s3_fileurl_node = file.find("S3_DOWNLOAD_URL") self.s3_fileurl = None - if s3_fileurl_node: + if s3_fileurl_node is not None: self.s3_fileurl = s3_fileurl_node.text slave_list = root.find("SLAVE_LIST").findall("SLAVE") enc_list = root.find("SLAVE_LIST").findall("ENCRYPT_SLAVE")