mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fix tests
This commit is contained in:
parent
ee838c1329
commit
cc4a466fec
@ -174,7 +174,10 @@ class TransactionLink(object):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls, link):
|
def from_dict(cls, link):
|
||||||
return cls(link['tx_id'], link['cid'])
|
try:
|
||||||
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user