summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7b7dadb)
Particularly scripted usage with stdout redirection can be confusing
if errors are printed to stdout instead of stderr.
try:
config = read_config(path=args.config)
except ConfigError as e:
try:
config = read_config(path=args.config)
except ConfigError as e:
+ print(e, file=sys.stderr)
sys.exit(1)
header_template = config['meta'].get('header', '''<!DOCTYPE html>
sys.exit(1)
header_template = config['meta'].get('header', '''<!DOCTYPE html>