fixed bug in try-except statement
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user