-
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. |
Beta Was this translation helpful? Give feedback.
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):
` |
Beta Was this translation helpful? Give feedback.
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):