Assign Variables before use

bzr-revno: 1785
This commit is contained in:
Tim Bentley 2011-10-23 19:40:18 +01:00
commit a62b03dce6
1 changed files with 2 additions and 0 deletions

View File

@ -178,6 +178,8 @@ class ExceptionForm(QtGui.QDialog, Ui_ExceptionDialog):
'Please add the information that bug reports are favoured written '
'in English.'))
content = self._createReport()
source = u''
exception = u''
for line in content[2].split(u'\n'):
if re.search(r'[/\\]openlp[/\\]', line):
source = re.sub(r'.*[/\\]openlp[/\\](.*)".*', r'\1', line)