Misc syntax

This commit is contained in:
Alexandre Aubin 2023-04-04 13:01:25 +02:00 committed by GitHub
parent f8c1e7c168
commit b5f3662627
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1506,7 +1506,7 @@ class FileQuestion(Question):
super()._prevalidate() super()._prevalidate()
# Validation should have already failed if required # Validation should have already failed if required
if self.value in (None, ""): if self.value in [None, ""]:
return self.value return self.value
if Moulinette.interface.type != "api": if Moulinette.interface.type != "api":