Travis CI: Use flake8 to find Python syntax errors and undefined names (#5467)
This commit is contained in:
committed by
ghost43
parent
9eebb306f2
commit
e34afd62ce
+1
-4
@@ -604,10 +604,7 @@ class Abstract_Wallet(AddressSynchronizer):
|
||||
return item
|
||||
|
||||
def get_label(self, tx_hash):
|
||||
label = self.labels.get(tx_hash, '')
|
||||
if label is '':
|
||||
label = self.get_default_label(tx_hash)
|
||||
return label
|
||||
return self.labels.get(tx_hash, '') or self.get_default_label(tx_hash)
|
||||
|
||||
def get_default_label(self, tx_hash):
|
||||
if not self.db.get_txi(tx_hash):
|
||||
|
||||
Reference in New Issue
Block a user