We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b65b4a commit 6192e85Copy full SHA for 6192e85
src/SimpleReplay/extract.py
@@ -850,9 +850,12 @@ def get_s3_audit_logs(
850
else:
851
curr_index -= 1
852
853
- logger.debug(
854
- f'First audit log in start_time range: {audit_objects[curr_index]["Key"].split("/")[-1]}'
855
- )
+ try:
+ logger.debug(
+ f'First audit log in start_time range: {audit_objects[curr_index]["Key"].split("/")[-1]}'
856
+ )
857
+ except IndexError as e:
858
+ raise RuntimeError(f"There wasn't a single audit log for the time range {start_time} - {end_time}") from e
859
return (connections, logs, databases, last_connections)
860
861
0 commit comments