Skip to content

UnboundLocalError: cannot access local variable 'dllocation' where it is not associated with a value #103

@songwentong

Description

@songwentong

Traceback (most recent call last):
File "D:\Documents\Github\PornHub-downloader-python\phdler.py", line 55, in
main()
~~~~^^
File "D:\Documents\Github\PornHub-downloader-python\phdler.py", line 15, in main
custom_dl(sys.argv[2])
~~~~~~~~~^^^^^^^^^^^^^
File "D:\Documents\Github\PornHub-downloader-python\functions.py", line 245, in custom_dl
custom_dl_download(name_check)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "D:\Documents\Github\PornHub-downloader-python\functions.py", line 252, in custom_dl_download
outtmpl = get_dl_location('DownloadLocation') + '/handpicked/%(title)s.%(ext)s'
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "D:\Documents\Github\PornHub-downloader-python\functions.py", line 377, in get_dl_location
return dllocation
^^^^^^^^^^
UnboundLocalError: cannot access local variable 'dllocation' where it is not associated with a value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions