Skip to content

Commit

Permalink
fix default value in storage.get
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasV committed Nov 20, 2013
1 parent 993a8ac commit 6dc9bfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ def read(self, path):


def get(self, key, default=None):
return self.data.get(key, default)
v = self.data.get(key)
if v is None:
v = default
return v

def put(self, key, value, save = True):

Expand Down

0 comments on commit 6dc9bfb

Please sign in to comment.