Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d249b2

Browse files
committed
cleanup if/else for headers
1 parent 43aded3 commit 9d249b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plotly/plotly/plotly.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,8 @@ def headers(cls):
12111211
proxy_username, proxy_password))).decode('utf8')
12121212
headers['authorization'] = 'Basic ' + encoded_proxy_auth
12131213
headers['plotly-authorization'] = 'Basic ' + encoded_api_auth
1214+
else:
1215+
headers['authorization'] = 'Basic ' + encoded_api_auth,
12141216

12151217
return headers
12161218

0 commit comments

Comments
 (0)