Skip to content
Snippets Groups Projects
Commit 7acdf0b3 authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] #809 fix obsolete link to github if exception occurs

parent d33cb9f9
No related branches found
No related tags found
1 merge request!791Fix github links
...@@ -11,3 +11,4 @@ GITLAB_RELEASES_PAGE_URL = "https://git.duniter.org/clients/python/sakia/-/relea ...@@ -11,3 +11,4 @@ GITLAB_RELEASES_PAGE_URL = "https://git.duniter.org/clients/python/sakia/-/relea
GITLAB_RELEASES_API_URL = ( GITLAB_RELEASES_API_URL = (
"https://git.duniter.org/api/v4/projects/clients%2Fpython%2Fsakia/releases" "https://git.duniter.org/api/v4/projects/clients%2Fpython%2Fsakia/releases"
) )
GITLAB_NEW_ISSUE_PAGE_URL = "https://git.duniter.org/clients/python/sakia/-/issues/new"
...@@ -9,6 +9,8 @@ from PyQt5.QtCore import Qt, QObject, QCoreApplication ...@@ -9,6 +9,8 @@ from PyQt5.QtCore import Qt, QObject, QCoreApplication
from PyQt5.QtWidgets import QApplication, QMessageBox, QDialog, QPushButton, QLabel from PyQt5.QtWidgets import QApplication, QMessageBox, QDialog, QPushButton, QLabel
from duniterpy.api.errors import DuniterError from duniterpy.api.errors import DuniterError
from sakia.constants import GITLAB_NEW_ISSUE_PAGE_URL
from sakia.helpers import single_instance_lock, cleanup_lock from sakia.helpers import single_instance_lock, cleanup_lock
from quamash import QSelectorEventLoop from quamash import QSelectorEventLoop
from sakia.errors import NoPeerAvailable from sakia.errors import NoPeerAvailable
...@@ -129,7 +131,9 @@ def exception_message(log_lines, exc_info): ...@@ -129,7 +131,9 @@ def exception_message(log_lines, exc_info):
QMessageBox.Critical, QMessageBox.Critical,
"Critical error", "Critical error",
"""A critical error occured. Select the details to display it. """A critical error occured. Select the details to display it.
Please report it to <a href='https://github.com/duniter/sakia/issues/new/'>the developers github</a>""", Please report it to <a href='{}'>the developers Gitlab</a>""".format(
GITLAB_NEW_ISSUE_PAGE_URL
),
QMessageBox.Ok, QMessageBox.Ok,
QApplication.activeWindow(), QApplication.activeWindow(),
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment