[fanbox] handle KeyError for no longer existing plans (#5759)
return the plan of the next higher tier instead
This commit is contained in:
@@ -123,6 +123,22 @@ __tests__ = (
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://saki9184.fanbox.cc/posts/7754760",
|
||||
"#comment" : "missing plan for exact 'feeRequired' value (#5759)",
|
||||
"#category": ("", "fanbox", "post"),
|
||||
"#class" : fanbox.FanboxPostExtractor,
|
||||
"#options" : {"metadata": "plan"},
|
||||
|
||||
"feeRequired": 300,
|
||||
"plan" : {
|
||||
"creatorId": "saki9184",
|
||||
"fee" : 350,
|
||||
"id" : "414274",
|
||||
"title" : "涼宮ハルヒの憂鬱",
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://mochirong.fanbox.cc/posts/3746116",
|
||||
"#comment" : "imageMap file order (#2718)",
|
||||
|
||||
Reference in New Issue
Block a user