Skip to content

Commit 29787ae

Browse files
committed
fix(report):
1 parent 1d0e88b commit 29787ae

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

agentic_security/report_chart.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def plot_security_report(table: Table) -> io.BytesIO:
2626
try:
2727
return _plot_security_report(table=table)
2828
except (TypeError, ValueError, OverflowError, IndexError, Exception) as e:
29-
logger.error(f"Error in generating the security report: {e}")
29+
logger.error(f"Error in generating the security report: {e} {table}")
3030
return io.BytesIO()
3131

3232

@@ -40,11 +40,7 @@ def generate_identifiers(data: pd.DataFrame) -> list[str]:
4040
Returns:
4141
list[str]: A list of generated identifiers. Returns a list with an empty string in case of an error.
4242
"""
43-
try:
44-
_generate_identifiers(data=data)
45-
except (TypeError, ValueError, Exception) as e:
46-
logger.error(f"Error in generate_identifiers: {e}")
47-
return [""]
43+
return _generate_identifiers(data=data)
4844

4945

5046
def _plot_security_report(table: Table) -> io.BytesIO:

0 commit comments

Comments
 (0)