#25 Python 3 Compatibility

This commit is contained in:
David Zingg
2020-07-01 21:59:36 +02:00
parent 542a633559
commit 809369f783
2 changed files with 11 additions and 10 deletions

View File

@ -168,7 +168,7 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
self._logger.info("Shutting down system with command: {command}".format(command=shutdown_command))
try:
import sarge
p = sarge.run(shutdown_command, async=True)
p = sarge.run(shutdown_command, async_=True)
except Exception as e:
self._logger.exception("Error when shutting down: {error}".format(error=e))
return