From af349f5ac22681b66094bc13c654b3d758099d15 Mon Sep 17 00:00:00 2001 From: dece Date: Fri, 4 Jun 2021 15:35:53 +0200 Subject: [PATCH] linting --- bebop/browser/browser.py | 2 +- bebop/protocol.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bebop/browser/browser.py b/bebop/browser/browser.py index 4d7d97f..92d1383 100644 --- a/bebop/browser/browser.py +++ b/bebop/browser/browser.py @@ -261,7 +261,7 @@ class Browser: try: self.handle_mouse(*curses.getmouse()) except curses.error: - logging.error(f"Failed to get mouse information.") + logging.error("Failed to get mouse information.") elif char == curses.KEY_RESIZE: self.handle_resize() elif char == curses.ascii.ESC: # Can be ESC or ALT char. diff --git a/bebop/protocol.py b/bebop/protocol.py index 881642e..20c14d3 100644 --- a/bebop/protocol.py +++ b/bebop/protocol.py @@ -163,7 +163,7 @@ class Request: except FileNotFoundError as exc: sock.close() 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}") return False