File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -220,9 +220,10 @@ def __init__(self, data: dict):
220
220
221
221
@property
222
222
def content_choices_made (self ) -> t .List [str ]:
223
- if self ._content_choices_made :
224
- return self ._content_choices_made ['initial' ]['choices_made' ]
225
- return []
223
+ try :
224
+ return self ._content_choices_made ['initial' ]['choices_made' ] # type: ignore
225
+ except (KeyError , TypeError ):
226
+ return []
226
227
227
228
@property
228
229
def remaining_choices (self ) -> t .Optional [int ]:
Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ async def get_subscription_products_with_gamekeys(self) -> t.AsyncGenerator[dict
127
127
128
128
Every product includes only A FEW representative games from given subscription and other data.
129
129
For Choice: `gamekey` field presence means user has unlocked that month to make choices;
130
- `contentChoicesMade` field contain choosen games grouped by keys from "unlockedContentEvents".
131
- For Monhly : `download_url` field presence means user has subscribed this month.
130
+ `contentChoicesMade` field contain chosen games grouped by keys from "unlockedContentEvents".
131
+ For Monthly : `download_url` field presence means user has subscribed this month.
132
132
133
133
Yields list of products - historically backward subscriptions info.
134
134
Choice products are in form of:
You can’t perform that action at this time.
0 commit comments