Skip to content

Commit 89189f1

Browse files
committed
added textwrap import
1 parent 01c5512 commit 89189f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fredapi/fred.py

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def __init__(self,
4141
self.root_url = 'https://api.stlouisfed.org/fred'
4242

4343
if self.api_key is None:
44+
import textwrap
4445
raise ValueError(textwrap.dedent("""\
4546
You need to set a valid API key. You can set it in 3 ways:
4647
pass the string with api_key, or set api_key_file to a

0 commit comments

Comments
 (0)