Skip to content

Commit

Permalink
#75 os.path.splitext crashed in the server (docker?)
Browse files Browse the repository at this point in the history
  • Loading branch information
hkir-dev committed Jul 6, 2021
1 parent 98607de commit 7a7b802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dosdp/document/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def generate_pattern_documentation(yaml_location, md_location=None, sample_data_
"""
logging.info("Documenting pattern file: " + yaml_location)
if md_location is None:
md_location = os.path.splitext(yaml_location)[0] + ".md"
md_location = str(yaml_location).split(".yaml")[0] + ".md"

if os.path.isdir(yaml_location):
if not yaml_location.endswith(os.path.sep):
Expand Down

0 comments on commit 7a7b802

Please sign in to comment.