Skip to content

Commit

Permalink
selenium: fix get logs
Browse files Browse the repository at this point in the history
dict key error because an empty list is not set if log_type has no logs
  • Loading branch information
naisanzaa committed Nov 4, 2024
1 parent ee165fb commit 18410c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions automon/integrations/seleniumWrapper/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def get_logs(self) -> dict:
self._logs[log_type].append(logs)
else:
self._logs[log_type] = logs
else:
self._logs[log_type] = []

logger.debug(f'get_logs :: {log_type} :: {len(self._logs[log_type])} logs')
logger.info(f'get_logs :: {log_type} :: done')
Expand Down

0 comments on commit 18410c2

Please sign in to comment.