removed driver quitting

This commit is contained in:
Max Nuding 2022-01-14 05:54:22 +01:00
parent 5ea45dbbfd
commit c96edfb9db
Signed by: phlaym
GPG Key ID: A06651BAB6777237

View File

@ -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