qubes/vm/qubesvm: fix qid setter to accept str

Mainly for loading from XML.
This commit is contained in:
Wojtek Porczyk 2015-06-24 15:39:29 +02:00
parent d4147c52bd
commit 7886695c63

View File

@ -57,6 +57,7 @@ except ImportError:
def _setter_qid(self, prop, value):
# pylint: disable=unused-argument
value = int(value)
if not 0 <= value <= qubes.config.max_qid:
raise ValueError(
'{} value must be between 0 and qubes.config.max_qid'.format(