handling redis err

This commit is contained in:
unknown 2019-11-03 03:25:32 +07:00
parent 0083bfbb32
commit 29d88ffc30

1
run.py
View File

@ -254,6 +254,7 @@ if __name__ == '__main__':
except Exception as e:
print("Cannot connect to redis...")
print(e)
sys.exit(9)
username = os.getenv('INSTAGRAM_USER')
password = os.getenv('INSTAGRAM_PASS')
ig_client = login(username, password)