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:
Kumi 2024-09-01 16:02:22 +02:00
parent a484b18989
commit 3c617b0dd6
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -437,7 +437,7 @@ def wiki_article(
mediawiki_api_response = urllib.request.urlopen(mediawiki_api_request)
mediawiki_api_data = json.loads(mediawiki_api_response.read().decode())
app.licenses[base_url] = license = mediawiki_api_data["license"]
except Exception as e:
except Exception:
license = None
else: