vishnukraj / youtube-upload

Automatically exported from code.google.com/p/youtube-upload
0 stars 1 forks source link

Crashes when no description is given #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey, just wanted to let you know. On the latest version, I get the following 
error if I give no description (this is after I've been prompted and I've 
inserted my password).

Traceback (most recent call last):
  File "/usr/local/bin/youtube-upload", line 512, in <module>
    sys.exit(catch_exceptions(EXIT_CODES, main, sys.argv[1:]))
  File "/usr/local/bin/youtube-upload", line 111, in catch_exceptions
    fun(*args, **kwargs)
  File "/usr/local/bin/youtube-upload", line 509, in main
    run_main(parser, options, args)
  File "/usr/local/bin/youtube-upload", line 444, in run_main
    url = upload_video(youtube, options, video_path, len(args), index)
  File "/usr/local/bin/youtube-upload", line 337, in upload_video
    description = to_utf8(options.description).decode("string-escape")
AttributeError: 'NoneType' object has no attribute 'decode'

I managed to get it to work by actually giving a description, but maybe you 
could set the description as a mandatory parameter or something like that to 
prevent it.

Original issue reported on code.google.com by gabry...@gmail.com on 7 Aug 2013 at 6:11

GoogleCodeExporter commented 9 years ago
This bug was solved in the repo long ago, but it's my fault for not uploading a 
new version. Done, 0.7.3 is out.

Original comment by tokland on 7 Aug 2013 at 6:16

GoogleCodeExporter commented 9 years ago

Original comment by tokland on 13 May 2014 at 8:32