Re: ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

2017-12-18 Thread Piyush Verma
ssl.OPENSSL_VERSION 'OpenSSL 0.9.8zh 14 Jan 2016' Regards, ~Piyush Facebook <https://www.facebook.com/piyushkv1> Twitter <https://twitter.com/SocializePiyush> On Mon, Dec 18, 2017 at 2:49 AM, Chris Angelico wrote: > On Mon, Dec 18, 2017 at 6:28 AM, Piyush Verma <114piy.

Re: ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

2017-12-17 Thread Piyush Verma
Yes Dieter, I see that it is connecting with 443 port number and service is running. Is this related to python version or mac? Regards, ~Piyush Facebook <https://www.facebook.com/piyushkv1> Twitter <https://twitter.com/SocializePiyush> On Sat, Dec 16, 2017 at 1:59 PM, dieter wrot

ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

2017-12-15 Thread Piyush Verma
Getting SSL error while connecting from httplib.HTTPSConnection. Any help would be appreciated. self.connection.request(method, request, payload, self.headers) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in request self._send_requ

Re: Catch exception with message?

2016-06-03 Thread Piyush Verma
dom832 wrote: > On Fri, Jun 3, 2016, at 19:14, Piyush Verma wrote: >> Generally we catch exception using >> except Exception as e: >> >> But sometimes, we see same type of exception is present with different >> message.Is there a way to capture same exception with

Catch exception with message?

2016-06-03 Thread Piyush Verma
Generally we catch exception using except Exception as e: But sometimes, we see same type of exception is present with different message.Is there a way to capture same exception with message filtering? Please help me to do this. Regards, ~Piyush -- https://mail.python.org/mailman/listinfo/python

PUDB Traceback

2015-05-27 Thread Piyush Verma
Hi, I'm facing traceback when using pudb python debugger to debug. Any help to resolve it. # python -m pudb file.py main() File "/usr/local/lib/python2.7/dist-packages/pudb/run.py", line 30, in main steal_output=options.steal_output) File "/usr/local/lib/python2.7/dist-packages/pudb/

thread.interrupt_main() behaviour

2014-07-01 Thread Piyush Verma
Hi, What is the behavior when we call thread.interrupt_main() method. Using this method I have implemented a new method for checking timeout. 359def TimeoutFunc(self):360 '''Function invoked by timer thread in case of timeout '''361 self.log.debug("Timeout thread invoked now for

How do we pass default argument value to create thread object?

2014-03-12 Thread Piyush Verma
Hi, I am using Thread class to create threads. thread = threading.Thread(target=Fun, args=[arg1, arg2, arg3="val"]) thread.start() This code is throwing compilation error(Ipython). In [19]: import threading In [20]: def Fun(agr1, arg2, arg3=None): : pass : In [21]: thread =