From 2975110c785646c771f648523b918f22f02b44d3 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 11 Oct 2022 23:26:20 +0000 Subject: Account for empty strings in get_string function --- wqflask/utility/type_checking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask/utility') diff --git a/wqflask/utility/type_checking.py b/wqflask/utility/type_checking.py index 00f14ba9..5e98f4ae 100644 --- a/wqflask/utility/type_checking.py +++ b/wqflask/utility/type_checking.py @@ -42,6 +42,6 @@ def get_int(vars_obj, name, default=None): def get_string(vars_obj, name, default=None): if name in vars_obj: - if not vars_obj[name] is None: + if not vars_obj[name] is None and not vars_obj[name] == "": return str(vars_obj[name]) return default -- cgit v1.2.3