diff --git a/cuckoo/data/analyzer/linux/lib/api/process.py b/cuckoo/data/analyzer/linux/lib/api/process.py index 7aaae353ba..eb7da2873f 100644 --- a/cuckoo/data/analyzer/linux/lib/api/process.py +++ b/cuckoo/data/analyzer/linux/lib/api/process.py @@ -31,10 +31,10 @@ def get_parent_pid(self): def get_proc_status(self): try: status = open("/proc/%u/status" % self.pid).readlines() - status_values = dict((i[0], i[1]) for i in [j.strip().split(None, 1) for j in status]) + status_values = dict((i[0], i[1]) for i in [j.strip().split(None, 1) + [""] for j in status]) return status_values except: - log.critical("could not get process status for pid %u", self.pid) + log.exception("could not get process status for pid %u", self.pid) return {} def execute(self, cmd):