summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2007-08-13 13:01:45 +0200
committerSylvain <syt@logilab.fr>2007-08-13 13:01:45 +0200
commit7e14208790b5d271bbbf21d2ed8be1571e1664ab (patch)
treefafd82478d63bfeeca91a4c0dc99c843e0a2b351
parentaf2fa2e6fd507efefb8a6b368b79c8725ecc1bd5 (diff)
downloadlogilab-common-7e14208790b5d271bbbf21d2ed8be1571e1664ab.tar.gz
allow empty password
-rw-r--r--optik_ext.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/optik_ext.py b/optik_ext.py
index 431f60d..2f7704f 100644
--- a/optik_ext.py
+++ b/optik_ext.py
@@ -117,9 +117,8 @@ def check_named(option, opt, value):
def check_password(option, opt, value):
"""check a password value (can't be empty)
"""
- if value:
- return value
- raise OptionValueError("option %s: empty password" % opt)
+ # no actual checking, monkey patch if you want more
+ return value
def check_file(option, opt, value):
"""check a file value