From caa03a927921cc9ebb17dc3fb1c22a0afca336ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 12 Jun 2017 12:26:57 +0200 Subject: [PATCH] vm/qubesvm: simplify 'None' kernel handling --- qubes/vm/qubesvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index aa6f02de..cbf777cb 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -97,7 +97,7 @@ def _setter_name(self, prop, value): def _setter_kernel(self, prop, value): ''' Helper for setting the domain kernel and running sanity checks on it. ''' # pylint: disable=unused-argument - if value is None or value == '': + if not value: return '' value = str(value) if '/' in value: