Fix syntax errors

This commit is contained in:
Micah Lee 2019-10-20 17:59:12 -07:00
parent 58ad7907fd
commit 3085e4ee0f
4 changed files with 14 additions and 19 deletions

View file

@ -659,7 +659,9 @@ class OnionShareGui(QtWidgets.QMainWindow):
event["path"] != "/favicon.ico"
and event["path"] != f"/{mode.web.shutdown_password}/shutdown"
):
self.status_bar.showMessage(f"{strings._("other_page_loaded")}: {event["path"]}")
self.status_bar.showMessage(
f"{strings._('other_page_loaded')}: {event['path']}"
)
if event["type"] == Web.REQUEST_INVALID_PASSWORD:
self.status_bar.showMessage(

View file

@ -112,7 +112,7 @@ class TorConnectionDialog(QtWidgets.QProgressDialog):
# Display the exception in an alert box
Alert(
self.common,
f"{msg}\n\n{strings._("gui_tor_connection_error_settings")}",
f"{msg}\n\n{strings._('gui_tor_connection_error_settings')}",
QtWidgets.QMessageBox.Warning,
)