Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docassemble/EFSPIntegration/interview_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,14 @@ def filter_codes(
if len(codes) == 1:
return codes, codes[0][0]
elif len(codes) == 0:
log_error_and_notify(
f"Warning! No existing codes matched filters ({filters})! Falling back to default, but this is unchecked and dangerous. It will be removed in the future. (all of the options: {options})"
)
return list(options), default
else:
log(
f"Warning! More than one code matched filters ({filters})! This can result in a worse UX for users. (the found options ({codes}))"
)
return codes, None


Expand Down