diff --git a/changelog b/changelog index b94e516..e1f4b02 100644 --- a/changelog +++ b/changelog @@ -5,6 +5,7 @@ Changelog * Exception: No braces means author == Nico Schottelius Next: + * Ignore non matching patterns for report command (Darko Poljak) * Added -s, --summary option (Darko Poljak) * No args error (Darko Poljak) * Report project name as file path basename (Darko Poljak) diff --git a/lib/ctt/report.py b/lib/ctt/report.py index aabb0c5..3a6b088 100755 --- a/lib/ctt/report.py +++ b/lib/ctt/report.py @@ -172,9 +172,10 @@ class Report(object): dir_datetime = datetime.datetime.strptime( dirname, ctt.DISKFORMAT) except ValueError: - raise ctt.Error(("Invalid time entry {entry} for project " - "{project}, aborting!").format( - entry=dirname, project=self.project)) + log.warning("Invalid time entry {entry} for project " + "{project}, skipping.".format( + entry=dirname, project=self.project)) + continue if (dir_datetime >= self.start_date and dir_datetime <= self.end_date):