From 7aa8b245f43ba03d0f76b2135a299c5e81fe9e17 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 7 Jul 2019 23:10:23 -0700 Subject: [PATCH] Remove unnecessary pass statements --- hyperglass/configuration/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hyperglass/configuration/__init__.py b/hyperglass/configuration/__init__.py index 20e99f9..8d63c24 100644 --- a/hyperglass/configuration/__init__.py +++ b/hyperglass/configuration/__init__.py @@ -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: