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:
|
except Exception as e:
|
||||||
print('error when extracting tweets')
|
print('error when extracting tweets')
|
||||||
print(e)
|
print(e)
|
||||||
|
return [], [], []
|
||||||
finally:
|
finally:
|
||||||
# close driver
|
# close driver
|
||||||
driver.close()
|
driver.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user