Skip to content

Commit

Permalink
no panic
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Sep 27, 2024
1 parent 55f6856 commit 44a0072
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,12 @@ func New(
bz, err := kr.Get(e2eetypes.DefaultKeyringName)
if err != nil {
logger.Error("e2ee identity for validator not found", "error", err)
identity = noneIdentity{}
} else {
identity, err = age.ParseX25519Identity(string(bz))
if err != nil {
panic(err)
logger.Error("e2ee identity for validator is invalid", "error", err)
identity = noneIdentity{}
}
}
}
Expand Down

0 comments on commit 44a0072

Please sign in to comment.