Better resilience against broken software update configs

Fixes #1773
This commit is contained in:
Gina Häußge committed 2017-02-14 10:42:02 +01:00
1 parent b453897ea3
commit 5d97dc4b40
7 files changed
+46 -22

No files matched your search

@@ -7,7 +7,7 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms
def can_perform_update(target, check):
return "python_updater" in check and check["python_updater"] is not None
return "python_updater" in check and check["python_updater"] is not None and hasattr(check["python_updater"], "perform_update")
def perform_update(target, check, target_version, log_cb=None):