From 7acdf0b3ea67a70f1851da1dd4be6aee7ac20e5f Mon Sep 17 00:00:00 2001 From: Vincent Texier <vit@free.fr> Date: Sun, 1 Nov 2020 15:53:32 +0100 Subject: [PATCH] [fix] #809 fix obsolete link to github if exception occurs --- src/sakia/constants.py | 1 + src/sakia/main.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sakia/constants.py b/src/sakia/constants.py index 76d97fee..44b13fbd 100644 --- a/src/sakia/constants.py +++ b/src/sakia/constants.py @@ -11,3 +11,4 @@ GITLAB_RELEASES_PAGE_URL = "https://git.duniter.org/clients/python/sakia/-/relea GITLAB_RELEASES_API_URL = ( "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" diff --git a/src/sakia/main.py b/src/sakia/main.py index 6271f2aa..bdb3760f 100755 --- a/src/sakia/main.py +++ b/src/sakia/main.py @@ -9,6 +9,8 @@ from PyQt5.QtCore import Qt, QObject, QCoreApplication from PyQt5.QtWidgets import QApplication, QMessageBox, QDialog, QPushButton, QLabel 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 quamash import QSelectorEventLoop from sakia.errors import NoPeerAvailable @@ -129,7 +131,9 @@ def exception_message(log_lines, exc_info): QMessageBox.Critical, "Critical error", """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, QApplication.activeWindow(), ) -- GitLab