We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 107cc6f commit 00c9980Copy full SHA for 00c9980
qubes/api/admin.py
@@ -1216,10 +1216,8 @@ async def _vm_create(
1216
self.enforce(not untrusted_value.isdigit())
1217
allowed_chars = string.ascii_letters + string.digits + "-_."
1218
self.enforce(all(c in allowed_chars for c in untrusted_value))
1219
- try:
1220
- kwargs["label"] = self.app.get_label(untrusted_value)
1221
- except KeyError:
1222
- raise qubes.exc.QubesValueError
+ # this may raise QubesLabelNotFoundError
+ kwargs["label"] = self.app.get_label(untrusted_value)
1223
1224
elif untrusted_key == "pool" and allow_pool:
1225
if pool is not None:
0 commit comments