sergedomk
sergedomk
I'm using Flask to implement an app that returns JSON for most requests including error responses for bad requests, page not found, etc. To do this I wrapped the default...
Flask only logs in debug mode. `handle_exception` raises an exception in debug, else returns an `InternalServerError` and logs the exception. Except that by default, it can't log the exception because...
The data parameter passed to the 'patch' method in api.py is not being included in the parameter list passed to the 'request' method. The following change shown below fixes the...
https://github.com/kennethreitz/requests/issues/160
While this is probably a non-issue (which would imply that the conditional is not needed at all), in the case were `self.time_finish is None` and `self.response_length is 0`, `length` is...
It appears that a fix back in September resulted in there being no way to attach a callback to the _on_close_connection event. https://github.com/pika/pika/commit/64d7ddc5f261a2f9aa48610e10f118e3e1dce772 The commit overrides the _on_connection_closed() method on...
This bit of code: ``` javascript tv4.addFormat("email", function (data, schema) { if (typeof data === "string" && /^\S+@\S+$/.test(data)) { return null; } return "A valid email address is required"; });...
httplib2, by default, uses it's own certificate authority for verifying ssl certificates. If the certificate used, in my case a self-signed cert used while developing, is not verifiable by that...
Here is the error I'm receiving: File "/opt/kavi/service/web/ve/lib/python2.7/site-packages/pysaml2-0.4.2-py2.7.egg/saml2/config.py", line 454, in assertion_consumer_services return [s[binding] for s in acs] TypeError: string indices must be integers, not NoneType acs is a dictionary...
This is the error I'm getting: File "/opt/kavi/service/web/ve/lib/python2.7/site-packages/pysaml2-0.4.2-py2.7.egg/saml2/config.py", line 459, in authz_services return self.metadata.authz_services(entity_id, "pdp", AttributeError: 'MetaData' object has no attribute 'authz_services' Think this is supposed to be "authz_service_endpoints".