removed driver quitting
This commit is contained in:
parent
5ea45dbbfd
commit
c96edfb9db
@ -1,7 +1,5 @@
|
||||
import datetime
|
||||
import os
|
||||
import re
|
||||
import time
|
||||
from typing import List, Optional
|
||||
|
||||
import requests
|
||||
@ -58,9 +56,4 @@ class NebulaLoader:
|
||||
return [NebulaLoader._parse_api_response(v) for v in videos_response.json()['results']]
|
||||
|
||||
def load(self) -> List[NebulaVideo]:
|
||||
videos = []
|
||||
try:
|
||||
videos = self.load_from_api()
|
||||
finally:
|
||||
self.driver.quit()
|
||||
return videos
|
||||
return self.load_from_api()
|
||||
|
Loading…
Reference in New Issue
Block a user