I'm wondering if this is the correct way to do it.

=== modified file 'apport/report.py'
--- apport/report.py    2009-09-02 13:22:33 +0000
+++ apport/report.py    2009-09-10 20:34:32 +0000
@@ -343,7 +343,8 @@
             if self['ExecutablePath'].startswith('/%s/' % p):
                 self['ExecutablePath'] = self['ExecutablePath'][len('/%s' % 
p):]
                 break
-        assert os.path.exists(self['ExecutablePath'])
+        if os.path.exists(self['ExecutablePath']):
+            assert os.path.exists(self['ExecutablePath'])
 
         # check if we have an interpreted program
         self._check_interpreted()

-- 
Unhandled exception: TypeError: stat() argument 1 must be (encoded string 
without NULL bytes), not str
https://bugs.launchpad.net/bugs/215380
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to