Skip to content

Commit 67f9c9c

Browse files
committed
Fix sending error report
1 parent 0d50a21 commit 67f9c9c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

OpenNumismat/main.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import sys
66
import traceback
77

8-
from PyQt5.QtCore import QCoreApplication, QTranslator, QUrl, PYQT_VERSION_STR
8+
from PyQt5.QtCore import QCoreApplication, QTranslator, QUrl, QUrlQuery, PYQT_VERSION_STR
99
from PyQt5.QtWidgets import QApplication, QMessageBox
10-
from PyQt5.QtGui import QDesktopServices
10+
from PyQt5.QtGui import QDesktopServices
1111

1212
import OpenNumismat
1313
from OpenNumismat.Settings import Settings
@@ -110,9 +110,11 @@ def exceptHook(type_, value, tback):
110110
errorMessage.append('')
111111
errorMessage.append(stack)
112112

113-
url = QUrl(version.Web + 'issues/entry')
114-
url.setQueryItems([('summary', subject),
115-
('comment', '\n'.join(errorMessage))])
113+
url = QUrl('https://code.google.com/p/open-numismat/issues/entry')
114+
query = QUrlQuery()
115+
query.addQueryItem('summary', subject)
116+
query.addQueryItem('comment', '\n'.join(errorMessage))
117+
url.setQuery(query)
116118

117119
executor = QDesktopServices()
118120
executor.openUrl(url)

0 commit comments

Comments
 (0)