Skip to content

Commit 7d5ccb0

Browse files
committed
fix(#2676): handle unexpected drep-info query result
1 parent c322fab commit 7d5ccb0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ changes.
1313
### Added
1414

1515
- Add share DRep button to every DRep instead of only our own [Issue 2686](https://github.com/IntersectMBO/govtool/issues/2686)
16+
- Handle unexpected drep info query result [Issue 2676](https://github.com/IntersectMBO/govtool/issues/2676)
1617

1718
### Fixed
1819

govtool/backend/src/VVA/DRep.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,4 @@ getDRepInfo drepId = withPool $ \conn -> do
199199
, dRepInfoImageHash = imageHash
200200
}
201201
[] -> return $ DRepInfo False False False False False Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing
202+
_ -> error "Unexpected result from database query in getDRepInfo"

0 commit comments

Comments
 (0)