mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 02:14:25 +02:00
fix: selenium variable might be referenced before assignement
resolves #96
This commit is contained in:
parent
53f8cd6031
commit
ad74eed395
4
main.py
4
main.py
@ -65,6 +65,7 @@ stream: logging.StreamHandler = None
|
||||
username: str = None
|
||||
password: str = None
|
||||
headless = True
|
||||
selenium = None
|
||||
|
||||
|
||||
# from https://stackoverflow.com/a/21978778/9785713
|
||||
@ -1913,7 +1914,8 @@ def _print_course_info(udemy: Udemy, udemy_object: dict):
|
||||
|
||||
|
||||
def main():
|
||||
global bearer_token
|
||||
global bearer_token, selenium
|
||||
|
||||
aria_ret_val = check_for_aria()
|
||||
if not aria_ret_val:
|
||||
logger.fatal("> Aria2c is missing from your system or path!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user