remove some unnecessary pass statements

This commit is contained in:
Bastian Schroll 2016-10-03 16:45:12 +02:00
parent 6b520881b6
commit 7bf7f3c47b
6 changed files with 0 additions and 13 deletions

View file

@ -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

View file

@ -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

View file

@ -39,7 +39,6 @@ def decodeString(inputString = ""):
logging.debug("no encoding found", exc_info=True)
# no fixing possible, raise exception
raise
pass
return decodedString

View file

@ -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)

View file

@ -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

View file

@ -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")