1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00

Remove unnecessary pass statements

This commit is contained in:
checktheroads 2019-07-07 23:10:23 -07:00
parent e940195631
commit 7aa8b245f4

View file

@ -3,8 +3,6 @@ Imports configuration varibles from configuration files and returns
default values if undefined.
"""
__all__ = ("params", "commands", "devices", "credentials", "proxies", "logzero_config")
# Standard Library Imports
import math
from pathlib import Path
@ -28,9 +26,7 @@ try:
with open(working_dir.joinpath("hyperglass.yaml")) as config_yaml:
user_config = yaml.safe_load(config_yaml)
except FileNotFoundError as no_config_error:
logger.error(no_config_error)
logger.error("Default configuration will be used")
pass
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:
@ -42,7 +38,6 @@ except FileNotFoundError:
"Defaults will be used."
)
)
pass
# Import device configuration file
try:
with open(working_dir.joinpath("devices.yaml")) as devices_yaml: