Ok, I've worked out why it happened. I didn't have read-access to the crash report (until i chmodded it to upload it to launchpad), hence resulting in an IOError. All you need to do (i think) is replace the original:
file=open(filename)
with:
try:
-->file=open(filename)
except IOError:
-->#display some sort of graphical error message saying soemthing like: "The file could not be accessed. Please ensure that oyu have read access to it."
-->exit()
Ok, I've worked out why it happened. I didn't have read-access to the crash report (until i chmodded it to upload it to launchpad), hence resulting in an IOError. All you need to do (i think) is replace the original: open(filename)
file=open(filename)
with:
try:
-->file=
except IOError:
-->#display some sort of graphical error message saying soemthing like: "The file could not be accessed. Please ensure that oyu have read access to it."
-->exit()
(I've used --> to symbolise indents)