Error ***'None' has no attribute 'longdate'("'None' has no attribute 'longdate'",)