Refactor the comparison involving not

Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
shubhendra 2021-03-26 18:45:41 +05:30 committed by Lex Berezhny
parent 68399ca31c
commit 87fe5c6101

View file

@ -64,7 +64,7 @@ async def checkcontrolling(daemon: Daemon, db: SQLDB):
if __name__ == '__main__': if __name__ == '__main__':
if not len(sys.argv) == 3: if len(sys.argv) != 3:
print("usage: <db_file_path> <lbrycrd_url>") print("usage: <db_file_path> <lbrycrd_url>")
sys.exit(1) sys.exit(1)
db_path, lbrycrd_url = sys.argv[1:] # pylint: disable=W0632 db_path, lbrycrd_url = sys.argv[1:] # pylint: disable=W0632