Commit 0c1d92b9 authored by Martin Krajnak's avatar Martin Krajnak

Fix TypeError in exception handler

parent e43b5b99
Pipeline #210993782 canceled with stages
......@@ -119,8 +119,8 @@ class IsAnApplicationNamed(Predicate):
def satisfiedByNode(node):
return node.roleName == "application" and stringMatches(self.appName,
except GLib.GError as error:
if re.match(r"name :[0-9]+\.[0-9]+ was not provided", error):
except GLib.GError as e:
if re.match(r"name :[0-9]+\.[0-9]+ was not provided", e.message):
logger.log("Dogtail: warning: omiting possibly broken at-spi application record")
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment