-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
The get_docs() function is defined as
def get_docs(**kwargs):
...However, there is no flexibility in what keys to pass as the only key value that the function accepts is database.
For example,
dbconnect.get_docs(database = "main-app")`)will run correctly, while
dbconnect.get_docs(db = "main-app")`)will fail with error message
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-15-81be8a24935a> in <module>()
----> 1 dbc.get_docs(db = "main-app")
/anaconda3/lib/python3.6/site-packages/dbconnect/__init__.py in get_docs(**kwargs)
41 def get_docs(**kwargs):
42 """Open the database documentation of the database specified."""
---> 43 url = _get_param("/dbconnect/{database}/docs".format(database=kwargs['database']))
44 print("Opening \"{url}\"".format(url=url))
45 webbrowser.open(url)
Metadata
Metadata
Assignees
Labels
No labels