fix(error-handling): remove unused exception variable
Removed the unused exception variable from the error handling block during MediaWiki API request. This helps in reducing potential future linting errors and maintains cleaner code. No functional changes.
This commit is contained in:
parent
a484b18989
commit
3c617b0dd6
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ def wiki_article(
|
||||||
mediawiki_api_response = urllib.request.urlopen(mediawiki_api_request)
|
mediawiki_api_response = urllib.request.urlopen(mediawiki_api_request)
|
||||||
mediawiki_api_data = json.loads(mediawiki_api_response.read().decode())
|
mediawiki_api_data = json.loads(mediawiki_api_response.read().decode())
|
||||||
app.licenses[base_url] = license = mediawiki_api_data["license"]
|
app.licenses[base_url] = license = mediawiki_api_data["license"]
|
||||||
except Exception as e:
|
except Exception:
|
||||||
license = None
|
license = None
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue