Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanvugt committed Sep 19, 2019
1 parent bcd9d82 commit 44c2189
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion auto_cli/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

from .utils import _print_and_quit

CONFIG_FILE = os.environ.get("AUTO_CLI_CONFIG_FILE", Path("~/.auto_cli").expanduser())
CONFIG_FILE = Path(
os.environ.get("AUTO_CLI_CONFIG_FILE") or Path("~/.auto_cli").expanduser()
)


class Configuration:
Expand Down
2 changes: 1 addition & 1 deletion auto_cli/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _parse_function_doc(function: Callable) -> _FunctionDoc:
"""Parse function documentation which adheres to the Sphinx standard
https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#info-field-lists
"""
if not hasattr(function, "__doc__"):
if not hasattr(function, "__doc__") or function.__doc__ is None:
return _FunctionDoc("", {})

doc = function.__doc__
Expand Down

0 comments on commit 44c2189

Please sign in to comment.