linting
This commit is contained in:
parent
fb8d078060
commit
af349f5ac2
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue