diff --git a/linehaul/ua/impl.py b/linehaul/ua/impl.py index 2af8c32..adb043f 100644 --- a/linehaul/ua/impl.py +++ b/linehaul/ua/impl.py @@ -77,9 +77,9 @@ def __init__(self, regexes, handler, *, name=None): def name(self): return self._name - def __call__(self, user_agent): + def __call__(self, ua): for regex in self._regexes: - matched = regex.search(user_agent) + matched = regex.search(ua) # If we've matched this particuar regex, then we'll break the loop here and # go onto finishing parsing.