Clean up missing dependency change updates

This commit is contained in:
nolash
2021-05-03 19:51:05 +02:00
parent 9f7fd58142
commit c951f4718e
10 changed files with 19 additions and 13 deletions

View File

@@ -25,7 +25,10 @@ class FaucetFilter(TagSyncFilter):
def filter(self, conn, block, tx, db_session=None):
data = strip_0x(tx.payload)
try:
data = strip_0x(tx.payload)
except ValueError:
return False
logg.debug('data {}'.format(data))
if Faucet.method_for(data[:8]) == None:
return False

View File

@@ -72,6 +72,7 @@ def register_filter_tags(filters, session):
session.commit()
logg.info('added tag name "{}" domain "{}"'.format(tag[0], tag[1]))
except sqlalchemy.exc.IntegrityError:
session.rollback()
logg.debug('already have tag name "{}" domain "{}"'.format(tag[0], tag[1]))