]> git.cworth.org Git - turbot/commit
Correct the code storing the picked base64 token
authorCarl Worth <cworth@cworth.org>
Tue, 20 Oct 2020 01:48:08 +0000 (18:48 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 20 Oct 2020 01:48:08 +0000 (18:48 -0700)
commita435b7ed04ed7ca1939867beaecb3a71b3aa3348
tree483dbfb986ba93bc56cb1b3ec75c8dbdac6dc6be
parent75f4acf948be51d904c59b4afc600fb4e5dc237b
Correct the code storing the picked base64 token

Using 'str()' here was incorrect. That did go from a bytes value to a
string, but it did it by adding "b'" to the beginning and "'" to the
end, breaking the parsing of the base64 value.

Here, instead, we use the decode('us-ascii') method on the bytes value.
turbot_lambda/turbot_lambda.py