remove invalid claim_id from default channel filter list

This commit is contained in:
Lex Berezhny 2019-12-14 18:42:14 -05:00
parent 08792e794f
commit 3cffaa43f7
3 changed files with 3 additions and 3 deletions

View file

@ -168,7 +168,7 @@ def execute_query(sql, values) -> List:
plain_sql = interpolate(sql, values)
if context.is_tracking_metrics:
context.metrics['execute_query'][-1]['sql'] = plain_sql
if str(err) == "interrupted":
if isinstance(err, apsw.InterruptError):
context.log.warning("interrupted slow sqlite query:\n%s", plain_sql)
raise SQLiteInterruptedError(context.metrics)
context.log.exception('failed running query', exc_info=err)

View file

@ -108,7 +108,7 @@ class LBRYElectrumX(ElectrumX):
self.bp: LBRYBlockProcessor = self.session_mgr.bp
self.db: LBRYDB = self.bp.db
# space separated list of channel URIs used for filtering bad content
filtering_channels = self.env.default('FILTERING_CHANNELS_IDS', '1111')
filtering_channels = self.env.default('FILTERING_CHANNELS_IDS', '')
self.filtering_channels_ids = list(filter(None, filtering_channels.split(' ')))
def set_request_handlers(self, ptuple):