diff --git a/pyinotifyd/__init__.py b/pyinotifyd/__init__.py index 40c7c8a..5bdcbb7 100755 --- a/pyinotifyd/__init__.py +++ b/pyinotifyd/__init__.py @@ -98,7 +98,8 @@ class EventMap(ProcessEvent): def process_default(self, event): msg = "received event" - for attr in ["dir", "mask", "maskname", "pathname", "src_pathname", "wd"]: + for attr in [ + "dir", "mask", "maskname", "pathname", "src_pathname", "wd"]: value = getattr(event, attr, None) if attr == "mask": value = hex(value)