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