Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bare output includes extra line in non-screen output with no vulnerabilities #423

Closed
chris-bradley opened this issue Nov 14, 2022 · 1 comment · Fixed by #429
Closed
Assignees
Labels

Comments

@chris-bradley
Copy link

  • safety version: 2.3.1
  • Python version: 3.6 and later
  • Operating System: Linux

Description

When running safety with --output bare in an environment with no vulnerabilities in a non-screen environment (eg. within a cron task or piping to a file), a single line is output:
+==============================================================================+
When used as a cron task, this causes an unnecessary email to be sent.

What I Did

Within a cron environment:

>>> safety check --output bare
+==============================================================================+

Due to the un-needed output, an email is sent.

@yeisonvargasf yeisonvargasf self-assigned this Nov 14, 2022
@yeisonvargasf
Copy link
Member

@chris-bradley, as a workaround, you should be able to redirect stderr. Let me know if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants