Skip to content

Make sure not to use bottleneck when it is not installed. #617

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

Closed
wants to merge 1 commit into from

Conversation

lodagro
Copy link
Contributor

@lodagro lodagro commented Jan 12, 2012

I don`t have bottleneck, this little change allows me to import trunk again
nosetests running fine

@wesm
Copy link
Member

wesm commented Jan 12, 2012

Sorry about that. I changed it to a slightly more EAFP:


    try:
        bn_func = getattr(bn, bn_name)
    except NameError:
        bn_func = None

@wesm wesm closed this Jan 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants