Fix tests

This commit is contained in:
tim 2016-08-17 15:29:13 +02:00 committed by Sylvain Bellemare
parent ee838c1329
commit cc4a466fec

View File

@ -174,7 +174,10 @@ class TransactionLink(object):
@classmethod @classmethod
def from_dict(cls, link): def from_dict(cls, link):
try:
return cls(link['tx_id'], link['cid']) return cls(link['tx_id'], link['cid'])
except TypeError:
return cls()
def to_dict(self): def to_dict(self):
if self.tx_id is None and self.cid is None: if self.tx_id is None and self.cid is None: