This commit is contained in:
dece 2021-06-04 15:35:53 +02:00
parent fb8d078060
commit af349f5ac2
2 changed files with 2 additions and 2 deletions

View file

@ -261,7 +261,7 @@ class Browser:
try: try:
self.handle_mouse(*curses.getmouse()) self.handle_mouse(*curses.getmouse())
except curses.error: except curses.error:
logging.error(f"Failed to get mouse information.") logging.error("Failed to get mouse information.")
elif char == curses.KEY_RESIZE: elif char == curses.KEY_RESIZE:
self.handle_resize() self.handle_resize()
elif char == curses.ascii.ESC: # Can be ESC or ALT char. elif char == curses.ascii.ESC: # Can be ESC or ALT char.

View file

@ -163,7 +163,7 @@ class Request:
except FileNotFoundError as exc: except FileNotFoundError as exc:
sock.close() sock.close()
self.state = Request.STATE_CONNECTION_FAILED self.state = Request.STATE_CONNECTION_FAILED
self.error = "Could not load identity files ({exc})" self.error = f"Could not load identity files ({exc})"
logging.error(f"Failed to load identity files {self.identity}") logging.error(f"Failed to load identity files {self.identity}")
return False return False