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

ValueError: There is no existing handler with id 0 when executed >1 times programmatically #200

Closed
msramalho opened this issue Feb 15, 2025 · 1 comment

Comments

@msramalho
Copy link
Contributor

ArchivingOrchestrator.run() is not idempotent, so sequential programmatic calls raise exceptions.

Known case:

logger.remove(0) # remove the default logger

will throw ValueError: There is no existing handler with id 0

if the auto-archiver is executed > 1 times in the same programatic setup.

pjrobertson added a commit that referenced this issue Feb 19, 2025
pjrobertson added a commit that referenced this issue Feb 19, 2025
pjrobertson added a commit that referenced this issue Feb 19, 2025
Fix issue #200 + Refactor _LAZY_LOADED_MODULES
@pjrobertson
Copy link
Collaborator

Fixed by #210

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