hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kengo Seki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12273) releasedocmaker.py fails with stacktrace if --project option is not specified
Date Mon, 27 Jul 2015 14:32:05 GMT

    [ 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)

Mime
View raw message