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

[Bug]: bottles-cli run crashes if you don't specify either --executable or --program #3559

Open
guihkx opened this issue Nov 16, 2024 · 0 comments · May be fixed by #3560
Open

[Bug]: bottles-cli run crashes if you don't specify either --executable or --program #3559

guihkx opened this issue Nov 16, 2024 · 0 comments · May be fixed by #3560

Comments

@guihkx
Copy link

guihkx commented Nov 16, 2024

Describe the bug

I was trying to figure out how to invoke bottles-cli run, and I accidentally made it crash when I didn't specify either --executable or --program.

To Reproduce

$ flatpak run --command=bottles-cli com.usebottles.bottles run -b Default
05:35:27 (INFO) Forcing offline mode 
Traceback (most recent call last):
  File "/app/bin/bottles-cli", line 764, in <module>
    cli = CLI()
          ^^^^^
  File "/app/bin/bottles-cli", line 236, in __init__
    self.__process_args()
  File "/app/bin/bottles-cli", line 285, in __process_args
    self.run_program()
  File "/app/bin/bottles-cli", line 687, in run_program
    _executable = _executable.replace("file://", "")
                  ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

Package

Flatpak from Flathub

Distribution

Arch Linux

Debugging Information

N/A

Troubleshooting Logs

No response

Additional context

No response

@guihkx guihkx linked a pull request Nov 16, 2024 that will close this issue
6 tasks
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

Successfully merging a pull request may close this issue.

1 participant