don't throw on empty strings
This commit is contained in:
parent
779176c6ff
commit
8f53753253
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ from tqdm import tqdm
|
|||
# upon import, in which case if they are unset the script will crash before we can output these messages.
|
||||
envMissing = False
|
||||
for env in ['api','key','organization','model','language','timeout','fileThreads','threads','width','listWidth']:
|
||||
if os.getenv(env) is None or str(os.getenv(env))[0] == '<':
|
||||
if os.getenv(env) is None or str(os.getenv(env))[:1] == '<':
|
||||
tqdm.write(Fore.RED + f'Environment variable {env} is not set!')
|
||||
envMissing = True
|
||||
if envMissing:
|
||||
|
|
|
|||
Loading…
Reference in a new issue