forked from mirrors/thatmattlove-hyperglass
code cleanup & fix formatting
This commit is contained in:
parent
13cb8e7e4e
commit
551acd27aa
2 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue