From 98884d4c29279a97f30d221b8097a7a3b2374234 Mon Sep 17 00:00:00 2001 From: agatha Date: Sat, 2 Dec 2023 16:38:34 -0500 Subject: [PATCH] Add continue when None returned from get_url --- stockbot-buyvm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stockbot-buyvm.py b/stockbot-buyvm.py index 5060824..95c185b 100644 --- a/stockbot-buyvm.py +++ b/stockbot-buyvm.py @@ -63,6 +63,9 @@ def main(): for url in URLS: html = get_url(url) + if not html: + continue + packages = get_packages(html) for package in packages: if package['qty'] > 0: