Skip to content

Commit

Permalink
Merge pull request #1015 from guydavis/develop
Browse files Browse the repository at this point in the history
Fix for regexp handling warning.
  • Loading branch information
guydavis authored Feb 16, 2025
2 parents 490a105 + 97433f1 commit 5bb8df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/models/chia.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def exclude_wallets_from_sum(self, wallet_details):
exclude_wallet = False
lines = chunk.split('\n')
for line in lines:
if re.match('^\s+-Type:\s+CAT$', line) or re.match('^\s+-Type:\s+DISTRIBUTED_ID$', line) or re.match('^\s+-Type:\s+DECENTRALIZED_ID$', line) or re.match('^\s+-Type:\s+NFT$', line):
if re.match(r'^\s+-Type:\s+CAT$', line) or re.match(r'^\s+-Type:\s+DISTRIBUTED_ID$', line) or re.match(r'^\s+-Type:\s+DECENTRALIZED_ID$', line) or re.match(r'^\s+-Type:\s+NFT$', line):
exclude_wallet = True
if exclude_wallet:
app.logger.debug("Ignoring balance of wallet named: {0}".format(lines[0][:-1]))
Expand Down

0 comments on commit 5bb8df7

Please sign in to comment.