This commit is contained in:
Oliver Walters 2019-05-07 08:11:19 +10:00
parent 0969edc431
commit 983804fa1f

View File

@ -36,7 +36,7 @@ def TestIfImageURL(url):
def DownloadExternalFile(url, **kwargs):
""" Attempt to download an external file
""" Attempt to download an external file
Args:
url - External URL
@ -92,10 +92,7 @@ def DownloadExternalFile(url, **kwargs):
except:
result['error'] = 'Could not convert downloaded data to file'
return result
def str2bool(text, test=True):
""" Test if a string 'looks' like a boolean value.