Code cleanup

This commit is contained in:
wez3 2017-01-02 18:56:17 +01:00
parent bc1c791c9a
commit 8f9d84aeac
3 changed files with 1 additions and 5 deletions

View File

@ -39,9 +39,7 @@ def loadPlugins():
plugin[name] = imp.load_source(name, plugin_dir + i)
plugin[name].init()
except ImportError as msg:
print "Error occured during loading imports for the plugin " + name + ". Please check whether all dependecies are installed"
print msg
sys.exit()
sys.exit("Error occured during loading imports for the plugin {}: {}".format(name, msg))
return plugin
@login_required()

View File

@ -42,7 +42,6 @@ def generatePage():
if not match:
blockValues[component] = retrieveValue(requestedRoute, component)
else:
blockValues[match.group(1)] = retrieveValue(requestedRoute, component)
blockArray.append(blockValues)
blockValues = {}

View File

@ -10,7 +10,6 @@
</div>
<div style=";overflow: hidden">
<br>
<script> console.log("{{ blockArray[count] }}");</script>
{% for k, v in blockArray[count]["camera"].iteritems() %}
{% if v[1] %}
<script> $('#s_title_{{ count }}').html("{{ v[1] }}");</script>