Skip to content

Commit ba39160

Browse files
marchbnrPaulMcInnis
authored andcommitted
Allow the state config variable to be an empty string, since not all locales use it
1 parent ea149ca commit ba39160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jobfunnel/config/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def query_string(self) -> str:
7575
def validate(self):
7676
"""We need to have the right information set, not mixing stuff
7777
"""
78-
assert self.province_or_state, "Province/State not set"
78+
assert self.province_or_state is not None, "Province/State not set"
7979
assert self.city, "City not set"
8080
assert self.locale, "Locale not set"
8181
assert self.providers and len(self.providers) >= 1, "Providers not set"

0 commit comments

Comments
 (0)