code cleanup & fix formatting

This commit is contained in:
checktheroads 2019-09-03 00:42:22 -07:00
parent 13cb8e7e4e
commit 551acd27aa
2 changed files with 3 additions and 1 deletions

View file

@ -26,10 +26,12 @@ try:
except FileNotFoundError as no_config_error:
user_config = None
logger.error(f"{no_config_error} - Default configuration will be used")
# Import device commands file
try:
with open(working_dir.joinpath("commands.yaml")) as commands_yaml:
user_commands = yaml.safe_load(commands_yaml)
logger.info(f"Found commands: {user_commands}")
except FileNotFoundError:
user_commands = None
logger.info(

View file

@ -46,7 +46,7 @@
</option>
{% endif %}
{% if features.traceroute.enable %}
<option id="type_traceroute" value="traceroute" data-display-name="{{ branding.text.traceroute }}">
<option id="traceroute" value="traceroute" data-display-name="{{ branding.text.traceroute }}">
{{ branding.text.traceroute }}</option>
{% endif %}
</select>