]> git.mxchange.org Git - fba.git/blobdiff - fba/boot.py
Fixed some issues found by pylint:
[fba.git] / fba / boot.py
index 13a233d5b3e86ad8f3b2bbd9b5b893378ce4179a..fcdef23f0d699f7c9f3c826eca3ad494540acc4d 100644 (file)
@@ -99,6 +99,13 @@ def init_parser():
     )
     parser.set_defaults(command=commands.fetch_fbabot_atom)
 
+    ### Fetch blocks from federater ###
+    parser = subparser_command.add_parser(
+        "fetch_federater",
+        help="Fetches CSV file (block recommendations) for more possible instances to disover",
+    )
+    parser.set_defaults(command=commands.fetch_federater)
+
     ### Fetch instances from given initial instance ###
     parser = subparser_command.add_parser(
         "fetch_instances",
@@ -116,13 +123,13 @@ def run_command():
     # DEBUG: print(f"DEBUG: args[{type(args)}]={args}")
     status = args.command(args)
     # DEBUG: print("DEBUG: status={status} - EXIT!")
-    return status if type(status) == int else 0
+    return status if isinstance(status, int) else 0
 
 def shutdown():
     print("DEBUG: Closing database connection ...")
     fba.connection.close()
 
-    if LOCK != None:
+    if LOCK is not None:
         print("DEBUG: Releasing lock ...")
         LOCK.close()
         print(f"DEBUG: Deleting lockfile='{lockfile}' ...")