Browse Source

The strings arguments should be in unicode

pull/34/head
Zykino 5 years ago
committed by Rigel Kent
parent
commit
2da64798c1
Signed by untrusted user: rigelk GPG Key ID: EA12971B0E438F36
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      prismedia_upload.py

+ 3
- 3
prismedia_upload.py View File

@ -165,17 +165,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")
),

Loading…
Cancel
Save