fix default value in storage.get
authorThomasV <thomasv@gitorious>
Wed, 20 Nov 2013 06:37:14 +0000 (07:37 +0100)
committerThomasV <thomasv@gitorious>
Wed, 20 Nov 2013 06:37:14 +0000 (07:37 +0100)
lib/wallet.py

index fc9cc56..2cc0101 100644 (file)
@@ -125,7 +125,10 @@ class WalletStorage:
 
 
     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):