Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed Jun 25, 2024
1 parent 4e6aeeb commit 503be87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions simple-http-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def do_GET(self):
except BrokenPipeError:
logging.info("pipe broken")
except Exception as e:
logging.exception("MyHandler: {}".format(e), exc_info=False)
logging.exception("MyHandler: %s", format(e), exc_info=False)

return None


def main():
Expand Down Expand Up @@ -59,7 +61,7 @@ def main():
except KeyboardInterrupt:
logging.info("catched Ctrl-C")
except Exception as e:
logging.exception("main: {}".format(e), exc_info=False)
logging.exception("main: %s", format(e), exc_info=False)


if __name__ == "__main__":
Expand Down

0 comments on commit 503be87

Please sign in to comment.