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

Submission gives error with possesive case #3

Open
0x00G opened this issue Oct 1, 2018 · 1 comment
Open

Submission gives error with possesive case #3

0x00G opened this issue Oct 1, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@0x00G
Copy link

0x00G commented Oct 1, 2018

I am trying to construct this term:

http://laktoz.yogurtcultures.org/?subject=ahmet&case=possesive&predicate=ev&whom=first_person_singular

After submission page gives an error with the stacktrace:

builtins.TypeError
TypeError: possesive() missing 1 required positional argument: 'person'

Traceback (most recent call last)
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/arguman/env/laktoz/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/arguman/laktoz/app.py", line 423, in index
result = render_result(request.args)
File "/home/arguman/laktoz/app.py", line 352, in render_result
parts.append((subject_case, case_processor(subject)[len(subject):], colorize(case_processor)))
TypeError: possesive() missing 1 required positional argument: 'person'
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object

Either formation does not make sense, or there is a bug. In any case, it should not give a code error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@0x00G and others