RefactoringRope/RefactoringServer.py

branch
eric7
changeset 383
a89b3f379703
parent 374
958f34e97952
child 389
4f53795beff0
diff -r b5312bf3ee86 -r a89b3f379703 RefactoringRope/RefactoringServer.py
--- a/RefactoringRope/RefactoringServer.py	Mon Jun 20 10:48:41 2022 +0200
+++ b/RefactoringRope/RefactoringServer.py	Sat Jun 25 16:30:50 2022 +0200
@@ -2224,11 +2224,11 @@
                         """ this issue with the received data to the"""
                         """ eric bugs email address.</p>"""
                         """<p>Error: {0}</p>"""
-                        """<p>Data:<br/>{1}</p>""").format(
-                    params["ExceptionValue"],
-                    Utilities.html_encode(params["ProtocolData"])),
-                EricMessageBox.StandardButtons(
-                    EricMessageBox.Ok))
+                        """<p>Data:<br/>{1}</p>""")
+                .format(params["ExceptionValue"],
+                        Utilities.html_encode(params["ProtocolData"])),
+                EricMessageBox.Ok
+            )
         else:
             EricMessageBox.critical(
                 None,
@@ -2238,14 +2238,13 @@
                         " email address.</p>"
                         "<p>Exception: {0}</p>"
                         "<p>Value: {1}</p>"
-                        "<p>Traceback: {2}</p>").format(
-                    Utilities.html_encode(params["ExceptionType"]),
-                    params["ExceptionValue"],
-                    params["Traceback"].replace("\r\n", "<br/>")
-                    .replace("\n", "<br/>").replace("\r", "<br/>"),
-                ),
-                EricMessageBox.StandardButtons(
-                    EricMessageBox.Ok))
+                        "<p>Traceback: {2}</p>")
+                .format(Utilities.html_encode(params["ExceptionType"]),
+                        params["ExceptionValue"],
+                        params["Traceback"].replace("\r\n", "<br/>")
+                        .replace("\n", "<br/>").replace("\r", "<br/>")),
+                EricMessageBox.Ok
+            )
     
     def __startRefactoringClient(self, interpreter, clientEnv):
         """

eric ide

mercurial