Skip to content

Commit 6599ee2

Browse files
authored
Update DictionaryLookup.py
1 parent fc7d871 commit 6599ee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DictionaryLookup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
key_var_name = 'TRANSLATOR_TEXT_SUBSCRIPTION_KEY'
1313
if not key_var_name in os.environ:
1414
raise Exception('Please set/export the environment variable: {}'.format(key_var_name))
15-
subscriptionKey = os.environ[key_var_name]
15+
subscription_key = os.environ[key_var_name]
1616

1717
endpoint_var_name = 'TRANSLATOR_TEXT_ENDPOINT'
1818
if not endpoint_var_name in os.environ:
@@ -26,7 +26,7 @@
2626
constructed_url = endpoint + path + params
2727

2828
headers = {
29-
'Ocp-Apim-Subscription-Key': subscriptionKey,
29+
'Ocp-Apim-Subscription-Key': subscription_key,
3030
'Content-type': 'application/json',
3131
'X-ClientTraceId': str(uuid.uuid4())
3232
}

0 commit comments

Comments
 (0)