diff --git a/documentation-samples/quickstarts/knowledgebase_quickstart/knowledgebase_quickstart.py b/documentation-samples/quickstarts/knowledgebase_quickstart/knowledgebase_quickstart.py index 5841e3e..de39f2c 100644 --- a/documentation-samples/quickstarts/knowledgebase_quickstart/knowledgebase_quickstart.py +++ b/documentation-samples/quickstarts/knowledgebase_quickstart/knowledgebase_quickstart.py @@ -16,12 +16,12 @@ # key_var_name = 'QNAMAKER_KEY' -if not key_var_name in os.environ: +if key_var_name not in os.environ: raise Exception('Please set/export the environment variable: {}'.format(key_var_name)) subscription_key = os.environ[key_var_name] host_var_name = 'QNAMAKER_HOST' -if not host_var_name in os.environ: +if host_var_name not in os.environ: raise Exception('Please set/export the environment variable: {}'.format(host_var_name)) host = os.environ[host_var_name] #