You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue when a specific error occurs that triggers another error.
something like:
jdata = json.loads(web.data())
#say the key data does not exist
foo = jdata['data']
Will cause a never ending error spiral
KeyError: 'data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "env/lib/python3.6/site-packages/web/application.py", line 255, in process
return p(lambda: process(processors))
File "brase/brase.py", line 186, in load_sqlachemy
return handler()
File "env/lib/python3.6/site-packages/web/application.py", line 255, in
return p(lambda: process(processors))
File "env/lib/python3.6/site-packages/web/application.py", line 264, in process
raise self.internalerror()
File "env/lib/python3.6/site-packages/web/application.py", line 545, in internalerror
return debugerror()
File "env/lib/python3.6/site-packages/web/debugerror.py", line 313, in debugerror
return web._InternalError(djangoerror())
File "env/lib/python3.6/site-packages/web/debugerror.py", line 303, in djangoerror
return t(exception_type, exception_value, frames)
File "env/lib/python3.6/site-packages/web/template.py", line 904, in call
return BaseTemplate.call(self, *a, **kw)
File "env/lib/python3.6/site-packages/web/template.py", line 831, in call
return self.t(*a, **kw)
File "env/lib/python3.6/site-packages/web/debugerror.py", line 193, in template
File "env/lib/python3.6/site-packages/web/webapi.py", line 364, in input
out = rawinput(_method)
File "env/lib/python3.6/site-packages/web/webapi.py", line 341, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib/python3.6/cgi.py", line 561, in init
self.read_single()
File "/usr/lib/python3.6/cgi.py", line 740, in read_single
self.read_binary()
File "/usr/lib/python3.6/cgi.py", line 762, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes
The text was updated successfully, but these errors were encountered:
Could you please try again with the latest git version of web.py? we're busy fixing py3 compatibility issues, reply here with related error if it doesn't work.
Using python3 and webpy Version: 0.40.dev1
There is an issue when a specific error occurs that triggers another error.
something like:
jdata = json.loads(web.data())
#say the key data does not exist
foo = jdata['data']
Will cause a never ending error spiral
KeyError: 'data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "env/lib/python3.6/site-packages/web/application.py", line 255, in process
return p(lambda: process(processors))
File "brase/brase.py", line 186, in load_sqlachemy
return handler()
File "env/lib/python3.6/site-packages/web/application.py", line 255, in
return p(lambda: process(processors))
File "env/lib/python3.6/site-packages/web/application.py", line 264, in process
raise self.internalerror()
File "env/lib/python3.6/site-packages/web/application.py", line 545, in internalerror
return debugerror()
File "env/lib/python3.6/site-packages/web/debugerror.py", line 313, in debugerror
return web._InternalError(djangoerror())
File "env/lib/python3.6/site-packages/web/debugerror.py", line 303, in djangoerror
return t(exception_type, exception_value, frames)
File "env/lib/python3.6/site-packages/web/template.py", line 904, in call
return BaseTemplate.call(self, *a, **kw)
File "env/lib/python3.6/site-packages/web/template.py", line 831, in call
return self.t(*a, **kw)
File "env/lib/python3.6/site-packages/web/debugerror.py", line 193, in template
File "env/lib/python3.6/site-packages/web/webapi.py", line 364, in input
out = rawinput(_method)
File "env/lib/python3.6/site-packages/web/webapi.py", line 341, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib/python3.6/cgi.py", line 561, in init
self.read_single()
File "/usr/lib/python3.6/cgi.py", line 740, in read_single
self.read_binary()
File "/usr/lib/python3.6/cgi.py", line 762, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes
The text was updated successfully, but these errors were encountered: