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

alby: fix balance reporting and error handling + opennode: fix error handling #2221

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

prusnak
Copy link
Collaborator

@prusnak prusnak commented Jan 28, 2024

Copy link

codecov bot commented Jan 28, 2024

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (e1bb211) 59.23% compared to head (79bf95f) 59.21%.

Files Patch % Lines
lnbits/wallets/alby.py 0.00% 5 Missing ⚠️
lnbits/wallets/opennode.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2221      +/-   ##
==========================================
- Coverage   59.23%   59.21%   -0.02%     
==========================================
  Files          60       60              
  Lines        8991     8994       +3     
==========================================
  Hits         5326     5326              
- Misses       3665     3668       +3     

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

@prusnak prusnak requested a review from dni January 28, 2024 16:11
@prusnak prusnak added this to the 0.12.0 milestone Jan 28, 2024
@prusnak prusnak linked an issue Jan 28, 2024 that may be closed by this pull request
@dni dni modified the milestones: 0.12.0, 0.12.1 Feb 5, 2024
@prusnak
Copy link
Collaborator Author

prusnak commented Feb 6, 2024

Let's not postpone to another milestone. The Alby integration is now unusable so it does not make sense to keep it broken for 0.12.0. Can we have another review @motorina0 @arcbtc plz?


return StatusResponse(None, data)
data = r.json()
assert data["unit"] == "sat"
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick:

Suggested change
assert data["unit"] == "sat"
assert data["unit"] == "sat", f"Expected unit 'sat', but was '{data["unit"]}'"

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.

utACK

@motorina0 motorina0 merged commit 4f45781 into dev Feb 6, 2024
22 checks passed
@motorina0 motorina0 deleted the wallet-fixes branch February 6, 2024 08:26
@dni dni modified the milestones: 0.12.2, 0.12.1 Feb 15, 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.

[BUG] Alby funding source in LNBits isn't set up properly
4 participants