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

About AppNotFound except #17

Closed
Dannybobo opened this issue Aug 22, 2023 · 1 comment
Closed

About AppNotFound except #17

Dannybobo opened this issue Aug 22, 2023 · 1 comment

Comments

@Dannybobo
Copy link

Hi, here is my code
try:
open("netflix", throw_error=True)
except AppNotFound as e:
wb.open_new_tab('https://www.netflix.com/tw/')

I think, when netflix app is not open, it will raise some exception like AppNotFound, but it didn't work,
if I write the wrong code to use this function, please show me the right way, thanks.

@athrvvvv
Copy link
Owner

Actually there is no thing as AppNotFound in AppOpener till now.

Try this:

from AppOpener import open

try:
    open("netflix", throw_error=True)
except:
    wb.open_new_tab('https://www.netflix.com/tw/')

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

2 participants