Skip to content

Commit 325d45a

Browse files
jeffgreencaomgjlk
authored andcommitted
fix TypeError (sigmavirus24#931)
* fix TypeError Fix `TypeError: write() argument must be str, not int` * Update docs/source/examples/oauth.rst Co-Authored-By: jeffgreenca <jeff.green.ca@gmail.com>
1 parent f3fc01f commit 325d45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/examples/oauth.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ application.
5252

5353
with open(CREDENTIALS_FILE, 'w') as fd:
5454
fd.write(auth.token + '\n')
55-
fd.write(auth.id)
55+
fd.write(str(auth.id))
5656

5757
In the future, you can then read that token in without having to bother your
5858
user. If at some later point in the lifetime of your application you need more

0 commit comments

Comments
 (0)