Using try-catch-pass to ignore exceptions can hide other issues in the
future as a side effect. For example, if status messages start using a
different separator in the future (e.g. see [*]), try-catch-pass
solution would silently skip all lines.

Instead, a better solution would be fixing just the particular cause of
this issue, the empty line in data.py. See the attachment for the
proposed fix.

My two cents.

[*] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844173

** Bug watch added: Debian Bug tracker #844173
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844173

** Patch added: "iotop-1773383.patch"
   
https://bugs.launchpad.net/ubuntu/+source/iotop/+bug/1773383/+attachment/5146010/+files/iotop-1773383.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1773383

Title:
  iotop crashes on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/pkg-website/+bug/1773383/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to