File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " zenlib"
7- version = " 2.0.2 "
7+ version = " 2.0.3 "
88authors = [
99 {
name =
" Desultory" ,
email =
" [email protected] " },
1010]
Original file line number Diff line number Diff line change 11__author__ = "desultory"
2- __version__ = "1.0 .0"
2+ __version__ = "1.1 .0"
33
44
55from functools import wraps
@@ -65,6 +65,8 @@ def dispatch_msg(msg):
6565 return dispatch_msg ("[%s] Key is set when it should be unset: %s." % (func .__name__ , dict_val ))
6666 if not_empty and not dict_val :
6767 return dispatch_msg ("[%s] Key is empty: %s." % (func .__name__ , key ))
68+ elif not_empty :
69+ return dispatch_msg ("[%s] Unable to find key: %s." % (func .__name__ , key ))
6870 elif not unset :
6971 raise ValueError ("Unable to find key: %s." % key )
7072
You can’t perform that action at this time.
0 commit comments