DBKeyStore.Load returns no error if keyring not found in db

pull/150/head
zelig 11 years ago
parent 2920795168
commit 12972b4b65
  1. 2
      ethcrypto/key_store.go

@ -32,7 +32,7 @@ func (k *DBKeyStore) Save(session string, keyRing *KeyRing) error {
func (k *DBKeyStore) Load(session string) (*KeyRing, error) {
data, err := k.db.Get(k.dbKey(session))
if err != nil {
return nil, err
return nil, nil
}
var keyRing *KeyRing
keyRing, err = NewKeyRingFromBytes(data)

Loading…
Cancel
Save