@@ -1234,7 +1234,9 @@ def create_menu_bar(self) -> None:
12341234 diagnostics_menu .addAction (report_issue_action )
12351235
12361236 test_sentry_action = QAction ("Send &test event to Sentry" , self )
1237- test_sentry_action .setToolTip ("Send a test error to Sentry to verify reporting is working" )
1237+ test_sentry_action .setToolTip (
1238+ "Send a test error to Sentry to verify reporting is working"
1239+ )
12381240 test_sentry_action .triggered .connect (self ._on_test_sentry_report )
12391241 diagnostics_menu .addAction (test_sentry_action )
12401242
@@ -1898,7 +1900,7 @@ def _on_test_sentry_report(self) -> None:
18981900 self ,
18991901 "Sentry test" ,
19001902 "Error reporting is off.\n \n "
1901- " Enable it in Settings → Privacy → \ " Send error reports to help fix bugs\ " , "
1903+ ' Enable it in Settings → Privacy → "Send error reports to help fix bugs", '
19021904 "then try again." ,
19031905 QMessageBox .Ok ,
19041906 )
@@ -3086,13 +3088,16 @@ def _download_and_install_update(self, update_info: Dict) -> None:
30863088 )
30873089 return
30883090 else :
3089- logger .warning ("Update has no checksum in appcast (e.g. EdDSA only)" )
3091+ logger .warning (
3092+ "Update has no checksum in appcast (e.g. EdDSA only)"
3093+ )
30903094 reply = QMessageBox .warning (
30913095 self ,
30923096 "Update Not Verified" ,
30933097 "This update does not include a checksum in the feed, so the download could not be verified.\n \n "
30943098 "You can install anyway (download was over HTTPS from the release server), or open the release page to download manually." ,
3095- QMessageBox .StandardButton .Ok | QMessageBox .StandardButton .Cancel ,
3099+ QMessageBox .StandardButton .Ok
3100+ | QMessageBox .StandardButton .Cancel ,
30963101 QMessageBox .StandardButton .Ok ,
30973102 )
30983103 if reply != QMessageBox .StandardButton .Ok :
@@ -3145,9 +3150,7 @@ def _show_manual_install_dialog(
31453150 msg .setWindowTitle (title )
31463151 msg .setText (message )
31473152 msg .addButton (QMessageBox .StandardButton .Cancel )
3148- update_btn = msg .addButton (
3149- "Update manually" , QMessageBox .ButtonRole .ActionRole
3150- )
3153+ update_btn = msg .addButton ("Update manually" , QMessageBox .ButtonRole .ActionRole )
31513154 msg .exec ()
31523155 if msg .clickedButton () == update_btn :
31533156 self ._open_installer_folder (installer_path )
@@ -3220,8 +3223,7 @@ def _install_update(self, installer_path: str) -> None:
32203223 logging .error (f"Update installation failed: { e } " )
32213224 self ._show_manual_install_dialog (
32223225 "Installation Error" ,
3223- f"Failed to install update:\n \n { str (e )} \n \n "
3224- "Please install manually." ,
3226+ f"Failed to install update:\n \n { str (e )} \n \n Please install manually." ,
32253227 installer_path ,
32263228 )
32273229
0 commit comments