)
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",
# 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}' ...")