Skip to content

Commit

Permalink
Merge pull request #6004 from tomachalek/supp2861_b
Browse files Browse the repository at this point in the history
Fix - make sure variable `data` is initialized
  • Loading branch information
tomachalek authored Aug 28, 2023
2 parents ac9e2b4 + 3d542d6 commit 3be85da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plugins/default_token_connect/backends/treq_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ async def fetch(self, corpora, maincorp, token_id, num_tokens, query_args, lang,
treq_link = (self.mk_backlink_addr() + '/index.php', t_args)
ta_args = self.mk_api_args(
lang1=args['lang1'], lang2=args['lang2'], groups=args['groups'], lemma=args['lemma'])
data = None

try:
logging.getLogger(__name__).debug('Treq request args: {0}'.format(ta_args))
Expand Down

0 comments on commit 3be85da

Please sign in to comment.