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

[Mint]: refactor mint statup connection #550

Closed
wants to merge 1 commit into from

Conversation

Dayvvo
Copy link

@Dayvvo Dayvvo commented Jun 16, 2024

fixes #518

Copy link

codecov bot commented Jun 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 67.71%. Comparing base (3b2f1aa) to head (bac0cb9).
Report is 15 commits behind head on main.

Files Patch % Lines
cashu/mint/startup.py 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #550      +/-   ##
==========================================
- Coverage   69.62%   67.71%   -1.92%     
==========================================
  Files          76       81       +5     
  Lines        6913     7337     +424     
==========================================
+ Hits         4813     4968     +155     
- Misses       2100     2369     +269     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

await migrate_databases(ledger.db, migrations)
await ledger.startup_ledger()
logger.info("Mint started.")
except:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you also print the Exception e, and use logger.error()?

Suggested change
except:
except Exception as e

@callebtc callebtc closed this Jul 12, 2024
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.

[Mint] Return more human-friendly error if mint can't reach backend during startup
2 participants