Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Revert "Update code with proper error state"
Browse files Browse the repository at this point in the history
This reverts commit 9d12e91.
  • Loading branch information
schmelz21 committed Sep 17, 2021
1 parent 9d12e91 commit 209fce0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pe_reports/report_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,8 @@ def main():
try:
db = db_from_config(db_creds_file)
except FileNotFoundError as not_found:
logging.error(
f"The output directory exists or there was a problem during directory creation. {not_found}",
exc_info=True,
)
return 1
logging.error("%s : Missing input data. No report generated.", not_found)
return 0

except yaml.YAMLError:
logging.critical(
Expand Down

0 comments on commit 209fce0

Please sign in to comment.