diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index f40f3fedfe..5c13138c4f 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -114,7 +114,8 @@ class WSJ(BasicNewsRecipe): '_intstate': 'deprecated', } for k in 'scope connection nonce state ui_locales ns protocol redirect_uri'.split(): - request_query[k] = query[k] + if k in query: + request_query[k] = query[k] login_url = 'https://sso.accounts.dowjones.com/usernamepassword/login' # you can get the version below from lib-min.js # search for: str: "x.x.x" diff --git a/recipes/wsj_free.recipe b/recipes/wsj_free.recipe index 25726c0ca3..d9ecde365d 100644 --- a/recipes/wsj_free.recipe +++ b/recipes/wsj_free.recipe @@ -114,7 +114,8 @@ class WSJ(BasicNewsRecipe): '_intstate': 'deprecated', } for k in 'scope connection nonce state ui_locales ns protocol redirect_uri'.split(): - request_query[k] = query[k] + if k in query: + request_query[k] = query[k] login_url = 'https://sso.accounts.dowjones.com/usernamepassword/login' # you can get the version below from lib-min.js # search for: str: "x.x.x"