fix export without discoveries in cli
@@ -153,6 +153,10 @@ def export_csv(discoveries, client, save=False):
If True, we do not ask the user to enter a file path for the CSV
to be exported
"""
+ # If there were no discoveries, do not generate any report
+ if not discoveries:
+ console.print('[bold][!] No discoveries found. Report not generated.')
+ return
# Check if --save is specified
if not save:
path = ''
