diff --git a/elasticapm/base.py b/elasticapm/base.py index a96350258..f7187653a 100644 --- a/elasticapm/base.py +++ b/elasticapm/base.py @@ -374,7 +374,7 @@ def get_service_info(self): def get_process_info(self): return { 'pid': os.getpid(), - 'ppid': os.getppid(), + 'ppid': os.getppid() if hasattr(os, 'getppid') else None, 'argv': sys.argv, 'title': None, # Note: if we implement this, the value needs to be wrapped with keyword_field }