diff options
Diffstat (limited to 'iotop/data.py')
-rw-r--r-- | iotop/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iotop/data.py b/iotop/data.py index f5496d0..8c1acae 100644 --- a/iotop/data.py +++ b/iotop/data.py @@ -307,7 +307,7 @@ class ProcessInfo(DumpableObject): def get_cmdline(self): # A process may exec, so we must always reread its cmdline try: - proc_cmdline = open('/proc/%d/cmdline' % self.pid) + proc_cmdline = open('/proc/%d/cmdline' % self.pid, errors='replace') cmdline = proc_cmdline.read(4096) except IOError: return '{no such process}' |