Travis CI: Use flake8 to find Python syntax errors and undefined names (#5467)

This commit is contained in:
Christian Clauss
2019-08-12 00:35:23 +02:00
committed by ghost43
parent 9eebb306f2
commit e34afd62ce
4 changed files with 11 additions and 13 deletions
+1 -4
View File
@@ -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):