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