Skip to content

Commit d545b25

Browse files
authored
API_KEY should be a str
1 parent 35901eb commit d545b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_programming/currency_converter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
URL_BASE = "https://www.amdoren.com/api/currency.php"
1111
TESTING = os.getenv("CI", False)
12-
API_KEY = os.getenv("AMDOREN_API_KEY")
12+
API_KEY = os.getenv("AMDOREN_API_KEY", "")
1313
if not API_KEY and not TESTING:
1414
raise KeyError("Please put your API key in an environment variable.")
1515

0 commit comments

Comments
 (0)