On Fri, May 16, 2014 at 8:18 PM, dandrigo <laurent.cel...@gmail.com> wrote: > Please read the 2 usefull files below : > > Dandrigo pg_test.py <http://python.6.x6.nabble.com/file/n5057062/pg_test.py> > > SS_dos.JPG <http://python.6.x6.nabble.com/file/n5057062/SS_dos.JPG>
These would be MUCH better included inline. Please, in future, copy and paste the *text* of the error message - don't post a screenshot. As to the actual problem: You're masking a potentially useful exception behind a bare except that just prints a generic message *and then continues*. This is a very bad idea. Don't do it. Take all that out and just attempt the connection; then you'll get a useful error. Same further down. Just don't. ChrisA -- https://mail.python.org/mailman/listinfo/python-list