diff --git a/plugins/posthog/fix_plugin_posthog/resources.py b/plugins/posthog/fix_plugin_posthog/resources.py index 2bfc5ca774..5f5a2f0f11 100644 --- a/plugins/posthog/fix_plugin_posthog/resources.py +++ b/plugins/posthog/fix_plugin_posthog/resources.py @@ -1,6 +1,7 @@ from datetime import datetime from attrs import define from typing import Optional, ClassVar, List, Dict +from fixlib.logger import log from fixlib.graph import Graph from fixlib.baseresources import BaseAccount, BaseResource @@ -115,5 +116,6 @@ def new(data: Dict) -> BaseResource: def convert_date(isodate_str: str) -> Optional[datetime]: try: return datetime.strptime(isodate_str, "%Y-%m-%dT%H:%M:%S.%fZ") - except Exception: + except Exception as e: + log.debug(f"Error converting date: {e}") return None