You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Kengo Seki (JIRA)" <ji...@apache.org> on 2015/07/27 16:32:05 UTC

[jira] [Commented] (HADOOP-12273) releasedocmaker.py fails with stacktrace if --project option is not specified

    [ https://issues.apache.org/jira/browse/HADOOP-12273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14642785#comment-14642785 ] 

Kengo Seki commented on HADOOP-12273:
-------------------------------------

This code also seems strange.

{code}
  if (len(args) > 2):
    options.versions.append(args[2])
{code}

Maybe it should be modified as follows, or simply removed.

{code}
  if len(args) > 0:
    options.versions.extend(args)
{code}

> releasedocmaker.py fails with stacktrace if --project option is not specified
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-12273
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12273
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: yetus
>            Reporter: Kengo Seki
>            Priority: Trivial
>
> It should show its usage instead. 
> {code}
> [sekikn@mobile hadoop]$ dev-support/releasedocmaker.py --version 3.0.0
> Traceback (most recent call last):
>   File "dev-support/releasedocmaker.py", line 580, in <module>
>     main()
>   File "dev-support/releasedocmaker.py", line 424, in main
>     title=projects[0]
> TypeError: 'NoneType' object has no attribute '__getitem__'
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)