mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
[mypy] Fix web_programming directory (#4297)
* Update world_covid19_stats.py * Delete monkeytype_config.py * updating DIRECTORY.md * Apply pyannotate suggestions to emails_from_url.py * mypy web_programming/emails_from_url.py * super().__init__() * mypy --ignore-missing-imports web_programming/emails_from_url.py * Update emails_from_url.py * self.urls: list[str] = [] * mypy: Fix web_programming directory Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
@ -9,7 +9,7 @@ import requests
|
||||
|
||||
URL_BASE = "https://www.amdoren.com/api/currency.php"
|
||||
TESTING = os.getenv("CI", False)
|
||||
API_KEY = os.getenv("AMDOREN_API_KEY")
|
||||
API_KEY = os.getenv("AMDOREN_API_KEY", "")
|
||||
if not API_KEY and not TESTING:
|
||||
raise KeyError("Please put your API key in an environment variable.")
|
||||
|
||||
|
Reference in New Issue
Block a user