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

(Occasional) error in hmason() #323

Open
havanagrawal opened this issue Sep 11, 2016 · 0 comments
Open

(Occasional) error in hmason() #323

havanagrawal opened this issue Sep 11, 2016 · 0 comments

Comments

@havanagrawal
Copy link
Contributor

Traceback (most recent call last):
  File "socode.py", line 1919, in <module>
    hmason()
  File "socode.py", line 228, in hmason
    exec random.choice(re.findall('def (.*):', socode_source))
  File "<string>", line 1, in <module>
  File "socode.py", line 830, in GeneralZero
    if inspect.isfunction(obj)])()
TypeError: nathanathan() takes at least 1 argument (0 given)

It is because this method picks out a random method from the socode.py file, and executes it. The problem is that it executes it without any args, and if it picks up a method that requires args, you get the above exception.

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

No branches or pull requests

1 participant