Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_tool_name crashes on many tool ids #4

Open
hmenager opened this issue Nov 5, 2015 · 0 comments
Open

get_tool_name crashes on many tool ids #4

hmenager opened this issue Nov 5, 2015 · 0 comments

Comments

@hmenager
Copy link
Member

hmenager commented Nov 5, 2015

Now, this might be a consequence of skipping the test mentioned in issue #3, but this:

string.split(tool_id, '/')[-2]

This crashes unless there is a specific format for names (toolshed id?). My temporary hack is:

    try:
        source = string.split(tool_id, '/')[-2]
    except:
        source = tool_id
    return source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant