Skip to content

Commit

Permalink
Add missing definition of variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Sep 20, 2022
1 parent 2915fbf commit c5e6320
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hades/agent/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@ def get_auth_attempts_at_port(
"""
nas_ip_address = check_ip_address("nas_ip_address", nas_ip_address)
nas_port_id = check_str("nas_port_id", nas_port_id)
if when is not None:
safe_when = check_timestamp_range("until", when)
safe_when = check_timestamp_range("until", when) if when is not None else None
if limit is not None:
limit = check_positive_int("limit", limit)
with contextlib.closing(engine.connect()) as connection:
Expand Down

0 comments on commit c5e6320

Please sign in to comment.