<div dir="ltr">Package: reportbug<div>Version: 6.6.0</div><div>Severity: important</div><div><br></div><div>Not only did it crash, but there doesn't seem to be any sign of the temp file any more, so I had to retype the bug report :-(</div><div><br></div><div><br></div><div><div>Report will be sent to "Debian Bug Tracking System" <<a href="mailto:submit@bugs.debian.org">submit@bugs.debian.org</a>></div><div>Submit this report on libapache2-mod-wsgi-py3 (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|s|?]? y</div><div>Traceback (most recent call last):</div><div>  File "/usr/bin/reportbug", line 2211, in <module></div><div>    main()</div><div>  File "/usr/bin/reportbug", line 1081, in main</div><div>    return iface.user_interface()</div><div>  File "/usr/bin/reportbug", line 2203, in user_interface</div><div>    self.options.envelopefrom)</div><div>  File "/usr/lib/python2.7/dist-packages/reportbug/submit.py", line 316, in send_report</div><div>    msgname = os.path.expanduser(outfile) or ('/var/tmp/%s.bug' % package)</div><div>  File "/usr/lib/python2.7/posixpath.py", line 261, in expanduser</div><div>    if not path.startswith('~'):</div><div>AttributeError: 'NoneType' object has no attribute 'startswith'</div><div><br></div><div><br></div><div>Looking at the code:</div><div><br></div><div>elif outfile or not ((mta and os.path.exists(mta)) or smtphost):<br></div><div>    msgname = os.path.expanduser(outfile) or ('/var/tmp/%s.bug' % package)$</div><div><br></div><div><br></div><div>It would appear to be that outfile is None (not sure I understand why), however the condition gets satisfied if a MTA is not installed or is smtphost is defined.</div><div><br></div><div>It then crashes.</div><div><br></div><div>If this is an error condition, there needs to be a better error message, and even better the temp file created by the editor should not get deleted.</div><div><br></div><div>Thanks</div>-- <br><div class="gmail_signature">Brian May <<a href="mailto:brian@microcomaustralia.com.au" target="_blank">brian@microcomaustralia.com.au</a>></div>
</div></div>