Skip to content

Commit

Permalink
refactor: improve schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dy0gu authored Oct 31, 2024
1 parent c32c345 commit 96a2987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def runEmailer(self):
"Body file": self.bodyFileInput.text(),
}
for input in schema:
if not schema[input]:
if schema[input] is None or schema[input] == "":
InfoBar.error(
title=f"{input} field cannot be empty!",
content="",
Expand Down

0 comments on commit 96a2987

Please sign in to comment.