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

feat: catch wallet init exception, string formatting for app.py #1846

Merged
merged 1 commit into from Aug 18, 2023

Conversation

dni
Copy link
Member

@dni dni commented Aug 2, 2023

this catches exception on set_wallet_class and switches to VoidWallet if it fails.
screenshot-1690964096

this catches exception on set_wallet_class and switches to VoidWallet if it fails
Comment on lines +336 to +343
try:
set_wallet_class()
except Exception as e:
logger.error(
f"Error initializing {settings.lnbits_backend_wallet_class}: "
f"{str(e)}"
)
set_void_wallet_class()
Copy link
Member Author

@dni dni Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the actual change and refactoring and set_void_wallet_class, rest is formatting.

@dni dni added this to the Release Version 0.10.10 milestone Aug 3, 2023
Copy link
Collaborator

@motorina0 motorina0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arcbtc arcbtc merged commit 65db43a into main Aug 18, 2023
27 checks passed
@arcbtc arcbtc deleted the startup-voidwallet branch August 18, 2023 09:24
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.

None yet

4 participants