From 8d8898aa5578df8ea702e8977886343ed5d12830 Mon Sep 17 00:00:00 2001 From: Zykino Date: Sun, 11 Nov 2018 16:52:48 +0100 Subject: [PATCH] The strings arguments should be in unicode --- prismedia_upload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prismedia_upload.py b/prismedia_upload.py index 22accf9..d2bfb8b 100755 --- a/prismedia_upload.py +++ b/prismedia_upload.py @@ -167,17 +167,17 @@ if __name__ == '__main__': schema = Schema({ '--file': And(str, validateVideo, error='file is not supported, please use mp4'), Optional('--name'): Or(None, And( - str, + unicode, lambda x: not x.isdigit(), error="The video name should be a string") ), Optional('--description'): Or(None, And( - str, + unicode, lambda x: not x.isdigit(), error="The video description should be a string") ), Optional('--tags'): Or(None, And( - str, + unicode, lambda x: not x.isdigit(), error="Tags should be a string") ),