|
Hi, I've adapted some code from prior posts almost successfully but I'm unable to get the token to save. The error: Token could not be saved: dictionary update sequence element #0 has length 1; 2 is required. What am I doing wrong please? Here is my subclass: `import sqlite3 class SqliteTokenBackend(utils.BaseTokenBackend): Thanks. |
Answered by
pkstacey
Aug 26, 2022
Replies: 1 comment
|
I have since fixed the code after sorting out conflicting errors. The code as follows inserts the token into the db just fine: ` class SqliteTokenBackend(utils.BaseTokenBackend): ` |
0 replies
Answer selected by
pkstacey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have since fixed the code after sorting out conflicting errors. The code as follows inserts the token into the db just fine:
`
import sqlite3
from O365 import utils
class SqliteTokenBackend(utils.BaseTokenBackend):