From 7bf7f3c47b91d1181c75922655f837bc87ad7c71 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Mon, 3 Oct 2016 16:45:12 +0200 Subject: [PATCH] remove some unnecessary pass statements --- boswatch.py | 5 ----- includes/descriptionList.py | 2 -- includes/helper/stringConverter.py | 1 - includes/pluginLoader.py | 3 --- includes/pynma/pynma.py | 1 - plugins/notifyMyAndroid/notifyMyAndroid.py | 1 - 6 files changed, 13 deletions(-) diff --git a/boswatch.py b/boswatch.py index ee81932..ec83519 100755 --- a/boswatch.py +++ b/boswatch.py @@ -151,7 +151,6 @@ try: # It's an error, but we could work without that stuff... logging.error("cannot clear Logfiles") logging.debug("cannot clear Logfiles", exc_info=True) - pass # # For debug display/log args @@ -235,7 +234,6 @@ try: # It's an error, but we could work without that stuff... logging.error("cannot set loglevel of fileHandler") logging.debug("cannot set loglevel of fileHandler", exc_info=True) - pass # @@ -259,7 +257,6 @@ try: # It's an error, but we could work without that stuff... logging.error("cannot add NMA logging handler") logging.debug("cannot add NMA logging handler", exc_info=True) - pass # initialization was fine, continue with main program... @@ -287,7 +284,6 @@ try: # It's an error, but we could work without that stuff... logging.error("cannot load filters") logging.debug("cannot load filters", exc_info=True) - pass # # Load description lists @@ -300,7 +296,6 @@ try: # It's an error, but we could work without that stuff... logging.error("cannot load description lists") logging.debug("cannot load description lists", exc_info=True) - pass # # Start rtl_fm diff --git a/includes/descriptionList.py b/includes/descriptionList.py index a45a964..9fecb1f 100644 --- a/includes/descriptionList.py +++ b/includes/descriptionList.py @@ -88,7 +88,6 @@ def loadDescriptionLists(): except: logging.error("cannot load description lists") logging.debug("cannot load description lists", exc_info=True) - pass ## @@ -125,7 +124,6 @@ def getDescription(typ, id): except: logging.error("Error during look up description lists") logging.debug("Error during look up description lists", exc_info=True) - pass logging.debug(" - result for %s: %s", id, resultStr) return resultStr diff --git a/includes/helper/stringConverter.py b/includes/helper/stringConverter.py index a2d887f..01ada06 100644 --- a/includes/helper/stringConverter.py +++ b/includes/helper/stringConverter.py @@ -39,7 +39,6 @@ def decodeString(inputString = ""): logging.debug("no encoding found", exc_info=True) # no fixing possible, raise exception raise - pass return decodedString diff --git a/includes/pluginLoader.py b/includes/pluginLoader.py index 26b0c2a..85f94d5 100644 --- a/includes/pluginLoader.py +++ b/includes/pluginLoader.py @@ -34,7 +34,6 @@ def loadPlugins(): # call next plugin, if one has thrown an exception logging.error("error loading plugin: %s", i["name"]) logging.debug("error loading plugin: %s", i["name"], exc_info=True) - pass else: # only call onLoad() and insert into pluginList[] if import is succesfull try: @@ -47,7 +46,6 @@ def loadPlugins(): # call next plugin, if one has thrown an exception logging.error("error calling %s.onLoad()", i["name"]) logging.debug("error calling %s.onLoad()", exc_info=True) - pass except: logging.error("cannot load plugins") logging.debug("cannot load plugins", exc_info=True) @@ -84,7 +82,6 @@ def getPlugins(): # no entry for plugin found in config-file except NoOptionError: logging.warning("Plugin [NO CONF ] %s", i) - pass except: logging.error("Error during plugin search") logging.debug("Error during plugin search", exc_info=True) diff --git a/includes/pynma/pynma.py b/includes/pynma/pynma.py index 5539d3a..ff91a31 100644 --- a/includes/pynma/pynma.py +++ b/includes/pynma/pynma.py @@ -134,7 +134,6 @@ Warning: using batch_mode will return error only if all API keys are bad 'code': 600, 'message': str(e) } - pass return res diff --git a/plugins/notifyMyAndroid/notifyMyAndroid.py b/plugins/notifyMyAndroid/notifyMyAndroid.py index 89012b7..a2a5eb8 100644 --- a/plugins/notifyMyAndroid/notifyMyAndroid.py +++ b/plugins/notifyMyAndroid/notifyMyAndroid.py @@ -145,7 +145,6 @@ def onLoad(): except: # skip entry in case of an exception logging.debug("error in shifting...", exc_info=True) - pass # if row['typ'] in supportedTypes # for row in reader: logging.debug("-- loading csv finished")