diff --git a/redmine_reporter/cli.py b/redmine_reporter/cli.py index e3ee63b..6300fcc 100644 --- a/redmine_reporter/cli.py +++ b/redmine_reporter/cli.py @@ -422,10 +422,6 @@ def main(argv: Optional[List[str]] = None) -> int: logging.exception("Unexpected error") return 1 - if issue_hours is None: - print("ℹ️ No time entries found in the given period.", file=sys.stderr) - return 0 - if not issue_hours: print("ℹ️ No time entries found in the given period.", file=sys.stderr) return 0 diff --git a/redmine_reporter/formatters/xlsx.py b/redmine_reporter/formatters/xlsx.py index ed3a7ae..16c4dd6 100644 --- a/redmine_reporter/formatters/xlsx.py +++ b/redmine_reporter/formatters/xlsx.py @@ -39,10 +39,7 @@ class XLSXFormatter(Formatter): def format(self, rows: List[ReportRow]) -> Workbook: wb = Workbook() ws = wb.active - if ws is None: - ws = wb.create_sheet("Report") - else: - ws.title = "Report" + ws.title = "Report" headers = [ "Project",