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

Make frame walk correct when called outside of a class #59

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dsevilla
Copy link

@dsevilla dsevilla commented Nov 5, 2016

Mongothon initialization was failing when called outside a class (for instance from an ipython notebook). This is because you don't have a containing class from where you're calling. Added a simple test to see if the getmodule() call returns None, returning None if so. The generated model class won't have a module in this case, but this is not a problem in most cases.

Mongothon initialization was failing when called outside a class (for instance from an ipython notebook). This is because you don't have a containing class from where you're calling. Added a simple test to see if the getmodule() call returns None, returning None if so. The generated model class won't have a module in this case, but this is not a problem in most cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant