diff --git a/src/js/admin-general-view.js b/src/js/admin-general-view.js index 049ea25..e4ba39c 100644 --- a/src/js/admin-general-view.js +++ b/src/js/admin-general-view.js @@ -73,14 +73,12 @@ module.exports = { restore: function (e) { - debugger; var files = e.target.files || e.dataTransfer.files; if (!files.length) return; var fr = new FileReader(); fr.onload = function (e) { var config; - debugger; try { config = JSON.parse(e.target.result); } catch (ex) { @@ -111,18 +109,15 @@ module.exports = { cache: false }).done(function (data) { - debugger; - //console.debug('>', data); - //this.default_config = data; - var config; - try { - config = JSON.parse(data); - } catch(ex) { - api.alert("Invalid default config file"); - return; - } - - api.put('config/save', config).done(function (data) { + var config; + try { + config = JSON.parse(data); + } catch(ex) { + api.alert("Invalid default config file"); + return; + } + + api.put('config/save', config).done(function (data) { this.confirmReset = false; this.$dispatch('update'); @@ -149,18 +144,15 @@ module.exports = { cache: false }).done(function (data) { - debugger; - //console.debug('>', data); - //this.default_config = data; - var config; - try { - config = JSON.parse(data); - } catch(ex) { - api.alert("Invalid default config file"); - return; - } - - api.put('config/save', config).done(function (data) { + var config; + try { + config = JSON.parse(data); + } catch(ex) { + api.alert("Invalid default config file"); + return; + } + + api.put('config/save', config).done(function (data) { this.confirmReset = false; this.$dispatch('update'); diff --git a/src/py/bbctrl/Planner.py b/src/py/bbctrl/Planner.py index 0b2e1b3..e5fc20b 100644 --- a/src/py/bbctrl/Planner.py +++ b/src/py/bbctrl/Planner.py @@ -381,7 +381,7 @@ class Planner(): except RuntimeError as e: # Pass on the planner message - self.log.error(str(e)); + self.log.error(str(e)) self.stop() except: