Used {} instead of set

This is because the one item I put in there is not considered iteratable.

CURA-1385
This commit is contained in:
Jaime van Kessel 2016-04-29 12:10:36 +02:00
parent ea80159939
commit 69bd1a6586

View file

@ -34,7 +34,7 @@ class MachineActionManager:
if machine in self._required_actions:
self._required_actions[machine].append(self._machine_actions[action_key])
else:
self._required_actions[machine] = set(self._machine_actions[action_key])
self._required_actions[machine] = {self._machine_actions[action_key]}
else:
raise UnknownMachineAction("Action %s, which is required for %s is not known." % (action_key, machine.getKey()))
@ -44,7 +44,7 @@ class MachineActionManager:
if machine in self._supported_actions:
self._supported_actions[machine].append(self._machine_actions[action_key])
else:
self._supported_actions[machine] = set(self._machine_actions[action_key])
self._supported_actions[machine] = {self._machine_actions[action_key]}
else:
Logger.log("W", "Unable to add %s to %s, as the action is not recognised", action_key, machine.getKey())