diff options
author | Yuval Aboulafia <yuval.abou@gmail.com> | 2022-12-14 18:59:33 +0000 |
---|---|---|
committer | Yuval Aboulafia <yuval.abou@gmail.com> | 2022-12-14 18:59:33 +0000 |
commit | 957e15c4642199e0792eba817a15e244246fb012 (patch) | |
tree | d18e754f4f1aadfafb72ef14a67c16556296710f /modules/ngrok.py | |
parent | 685f9631b56ff8bd43bce24ff5ce0f9a0e9af490 (diff) | |
download | stable-diffusion-webui-gfx803-957e15c4642199e0792eba817a15e244246fb012.tar.gz stable-diffusion-webui-gfx803-957e15c4642199e0792eba817a15e244246fb012.tar.bz2 stable-diffusion-webui-gfx803-957e15c4642199e0792eba817a15e244246fb012.zip |
Correct singleton comparisons
Diffstat (limited to 'modules/ngrok.py')
-rw-r--r-- | modules/ngrok.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ngrok.py b/modules/ngrok.py index 64c9a3c2..3df2c06b 100644 --- a/modules/ngrok.py +++ b/modules/ngrok.py @@ -2,7 +2,7 @@ from pyngrok import ngrok, conf, exception def connect(token, port, region): account = None - if token == None: + if token is None: token = 'None' else: if ':' in token: @@ -14,7 +14,7 @@ def connect(token, port, region): auth_token=token, region=region ) try: - if account == None: + if account is None: public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True).public_url else: public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True, auth=account).public_url |