mirror of
https://git.juggalol.com/agatha/stockbot-buyvm.git
synced 2024-11-16 20:56:40 +00:00
Add continue when None returned from get_url
This commit is contained in:
parent
78763a173b
commit
98884d4c29
@ -63,6 +63,9 @@ def main():
|
|||||||
for url in URLS:
|
for url in URLS:
|
||||||
html = get_url(url)
|
html = get_url(url)
|
||||||
|
|
||||||
|
if not html:
|
||||||
|
continue
|
||||||
|
|
||||||
packages = get_packages(html)
|
packages = get_packages(html)
|
||||||
for package in packages:
|
for package in packages:
|
||||||
if package['qty'] > 0:
|
if package['qty'] > 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user