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

Fix profile manager used before checked for None #3272

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

Luc-Mcgrady
Copy link
Contributor

If pm is None it will throw here:

anki/qt/aqt/__init__.py

Lines 674 to 677 in d678e39

setup_logging(
pm.addon_logs(),
level=logging.DEBUG if int(os.getenv("ANKIDEV", "0")) else logging.INFO,
)

instead of giving a descriptive error message as it should.

Bugged reddit user

@Luc-Mcgrady Luc-Mcgrady changed the title Fix: profile manager used before checked for None Fix profile manager used before checked for None Jun 30, 2024
@dae
Copy link
Member

dae commented Jul 10, 2024

Thank you!

@dae dae merged commit fa4352f into ankitects:main Jul 10, 2024
1 check passed
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 this pull request may close these issues.

2 participants