]> git.mxchange.org Git - fba.git/blobdiff - fba/boot.py
Fixed some issues found by pylint:
[fba.git] / fba / boot.py
index e66690bd6fabbd0bfe942f0488c9ec600326c0de..fcdef23f0d699f7c9f3c826eca3ad494540acc4d 100644 (file)
@@ -123,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}' ...")