mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fix
This commit is contained in:
parent
0969edc431
commit
983804fa1f
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user