python: fix flake8 warnings

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I6bcc6c72e1855c7de7c8b1e88cbab01e92b4070d
diff --git a/scripts/hostlogger_test.py b/scripts/hostlogger_test.py
index 415c584..d73327a 100755
--- a/scripts/hostlogger_test.py
+++ b/scripts/hostlogger_test.py
@@ -6,11 +6,10 @@
 import argparse
 import json
 import logging
-import os.path
-import requests
-import traceback
 import time
-from requests.auth import HTTPBasicAuth
+import traceback
+
+import requests
 
 parser = argparse.ArgumentParser()
 parser.add_argument("--host", help="Host to connect to", required=True)
@@ -45,7 +44,7 @@
 
         return data
 
-    except Exception as err:
+    except Exception:
         traceback.print_exc()
         pass
 
@@ -62,8 +61,8 @@
 def main():
     logging.captureWarnings(True)
     totalEntryUri = (
-        "https://{}/redfish/v1/Systems/system/"
-        + "LogServices/HostLogger/Entries/".format(args.host)
+        f"https://{args.host}/redfish/v1/Systems/system/"
+        + "LogServices/HostLogger/Entries/"
     )
     id = 0
     entryCount = 0