Commit 0b012a47 authored by Darko Poljak's avatar Darko Poljak Committed by GitHub

Merge pull request #25 from darko-poljak/ignore-non-matching-patterns

Ignore non matching patterns for report command.
parents 91cbda6c 2238ea70
...@@ -5,6 +5,7 @@ Changelog ...@@ -5,6 +5,7 @@ Changelog
* Exception: No braces means author == Nico Schottelius * Exception: No braces means author == Nico Schottelius
Next: Next:
* Ignore non matching patterns for report command (Darko Poljak)
* Added -s, --summary option (Darko Poljak) * Added -s, --summary option (Darko Poljak)
* No args error (Darko Poljak) * No args error (Darko Poljak)
* Report project name as file path basename (Darko Poljak) * Report project name as file path basename (Darko Poljak)
......
...@@ -172,9 +172,10 @@ class Report(object): ...@@ -172,9 +172,10 @@ class Report(object):
dir_datetime = datetime.datetime.strptime( dir_datetime = datetime.datetime.strptime(
dirname, ctt.DISKFORMAT) dirname, ctt.DISKFORMAT)
except ValueError: except ValueError:
raise ctt.Error(("Invalid time entry {entry} for project " log.warning("Invalid time entry {entry} for project "
"{project}, aborting!").format( "{project}, skipping.".format(
entry=dirname, project=self.project)) entry=dirname, project=self.project))
continue
if (dir_datetime >= self.start_date and if (dir_datetime >= self.start_date and
dir_datetime <= self.end_date): dir_datetime <= self.end_date):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment