Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: expected str, bytes or os.PathLike object, not NoneType #13

Open
hrxcodes opened this issue Apr 13, 2024 · 0 comments
Open
Milestone

Comments

@hrxcodes
Copy link
Contributor

Traceback (most recent call last):
  File "/usr/local/bin/pyrescene.py", line 1823, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/bin/pyrescene.py", line 1722, in main
    result = generate_srr(release_dir, working_dir,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/pyrescene.py", line 1124, in generate_srr
    if options.vobsub_srr and not unrar_is_available():
                                  ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/pyrescene.py", line 130, in unrar_is_available
    return os.path.isfile(os.path.abspath(get_unrar()))
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen posixpath>", line 399, in abspath
TypeError: expected str, bytes or os.PathLike object, not NoneType

Happens when using --best and unrar not being installed. Need aditional guarding.

@hrxcodes hrxcodes added this to the 0.8 milestone Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant