mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-03 10:50:23 +00:00
Correct singleton comparisons
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user