Skip to content

Commit

Permalink
Merge branch 'master' into multiple_fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl authored Sep 6, 2018
2 parents 2706cc4 + d31ccdc commit 009c5b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/towncrier/_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def load_config_from_file(from_file):
with open(from_file, "r") as conffile:
config = toml.load(conffile)

if "tool" not in config:
return parse_toml(config)


def parse_toml(config):
if 'tool' not in config:
raise ValueError("No [tool.towncrier] section.")

config = config["tool"]["towncrier"]
Expand Down

0 comments on commit 009c5b4

Please sign in to comment.