Commit 82887fb
committed
Change 'Client.users' to a dictionary
The key of a pair in 'Client.users' is the ‘_id’ of the contained
‘User’ object. This means that the user can only be added if it has
been “logged in”. Because of this, a ‘ValueError’ is raised if a
‘token’ or ‘code’ argument is not supplied.1 parent 15795f9 commit 82887fb
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments