Skip to content

Commit

Permalink
Adding FileNotFoundError exception (#8708)
Browse files Browse the repository at this point in the history
* Adding FileNotFoundError exception

Signed-off-by: Shivam Durgbuns <[email protected]>
  • Loading branch information
shivamdurgbuns authored Oct 23, 2023
1 parent 16c39f3 commit 542cf52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ocs_ci/framework/pytest_customization/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ def pytest_sessionfinish(session, exitstatus):
]
c.writerow(row)
logger.info(f"Test Time report saved to '{time_report_file}'")
except Exception:
logger.exception("Failed to save Test Time report to logs directory")
except Exception as e:
logger.warning(
f"Failed to save Test Time report to logs directory with exception. {e}"
)

for i in range(ocsci_config.nclusters):
ocsci_config.switch_ctx(i)
Expand Down

0 comments on commit 542cf52

Please sign in to comment.