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