fix error for reference before defining
@@ -693,6 +693,7 @@ def export_title(wildcards):
# TODO: maybe we could replace this with a config entry for full/human-readable build name?
location_name = wildcards.build_name
+ title = None
# If specified in config file generally, or in a config file build
if "title" in config["builds"][location_name]:
title = config["builds"][location_name]["title"]
