summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--psutil/_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_common.py b/psutil/_common.py
index 1e33699c..c94a8378 100644
--- a/psutil/_common.py
+++ b/psutil/_common.py
@@ -289,7 +289,7 @@ class Error(Exception):
info = {} # Python 2.6
for name in attrs:
value = getattr(self, name, None)
- if value:
+ if value is not None:
info[name] = value
return info