Mercurial > repos > greg > pima_report
changeset 30:134a0879d0b6 draft
Uploaded
author | greg |
---|---|
date | Wed, 03 May 2023 15:36:36 +0000 |
parents | 1352b8aa5979 |
children | a859de7cce94 |
files | pima_report.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pima_report.py Tue May 02 13:40:06 2023 +0000 +++ b/pima_report.py Wed May 03 15:36:36 2023 +0000 @@ -754,6 +754,10 @@ self.ofh.write("\nXXXXXX In add_lrn_risk_info\n\n") if self.lrn_risk_amr_file is None and self.lrn_risk_blacklist_file is None and self.lrn_risk_vf_file is None: return + if not os.path.isfile(self.lrn_risk_amr_file) and not os.path.isfile(self.lrn_risk_blacklist_file) and not os.path.isfile(self.lrn_risk_vf_file): + return + if os.path.getsize(self.lrn_risk_amr_file) == 0 and os.path.getsize(self.lrn_risk_blacklist_file) == 0 and os.path.getsize(self.lrn_risk_vf_file) == 0: + return self.doc.new_line() self.doc.new_header(level=2, title=self.lrn_risk_title) # Process self.lrn_risk_amr_file.