fixed bug in try-except statement

This commit is contained in:
simplypower-bbj
2022-12-17 01:12:52 +01:00
parent d602fda7c9
commit 39ce562fe3
+1
View File
@@ -80,6 +80,7 @@ def scrape(topic, limit=100, headless=True):
except Exception as e:
print('error when extracting tweets')
print(e)
return [], [], []
finally:
# close driver
driver.close()