imiptools/dates.py | raw changeset files shortlog |
1.1 --- a/imiptools/dates.py Sat Aug 01 22:24:43 2015 +0200 1.2 +++ b/imiptools/dates.py Sat Aug 01 23:06:48 2015 +0200 1.3 @@ -160,7 +160,7 @@ 1.4 format, using the 'attr' mapping (if specified) to control the conversion. 1.5 """ 1.6 1.7 - if not value or attr and attr.get("VALUE") != "PERIOD": 1.8 + if not value or attr and attr.get("VALUE") and attr.get("VALUE") != "PERIOD": 1.9 return None 1.10 1.11 t = value.split("/")