Update tests/metrics/estimate_gas.py

Co-Authored-By: KPrasch <kieranprasch@gmail.com>
pull/594/head
David Núñez 2018-12-14 08:06:32 -08:00 committed by GitHub
parent bf62f9201d
commit 9f32f76942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class AnalyzeGas:
def __call__(self, event, *args, **kwargs) -> None:
if event.get('log_namespace') == self.LOG_NAME:
message = event.get("log_format")
if not re.match(r'.*\s=\s\d+$', message):
if not re.match(r'\w+\s=\s\d+$', message):
return
label, gas = (s.strip() for s in message.split('='))
self.paint_line(label, gas)