Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created November 9, 2011 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oberstet/1353259 to your computer and use it in GitHub Desktop.
Save oberstet/1353259 to your computer and use it in GitHub Desktop.
traceback2
oberstet@wwwtavendo: ~/txpostgres/testing $ python txpostgres_error.py -n db1 -d tavendo -u tavendoweb -p correctpw
<class 'psycopg2.ProgrammingError'> relation "nonexistent" does not exist
LINE 1: select * from nonexistent
^
42P01
ERROR: relation "nonexistent" does not exist
LINE 1: select * from nonexistent
^
oberstet@wwwtavendo: ~/txpostgres/testing $ python txpostgres_error.py -n db1 -d tavendo -u tavendoweb -p badpassword
<class 'psycopg2.OperationalError'> asynchronous connection failed
None
None
<class 'psycopg2.OperationalError'> asynchronous connection failed
None
None
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/site-packages/txpostgres/txpostgres.py", line 165, in connectionLost
self._continue_polling()
--- <exception caught here> ---
File "/usr/local/lib/python2.6/site-packages/txpostgres/txpostgres.py", line 98, in _continue_polling
res = self._poll()
File "/usr/local/lib/python2.6/site-packages/txpostgres/txpostgres.py", line 77, in _poll
self._pollingState = self.pollable().poll()
psycopg2.OperationalError: asynchronous connection failed
oberstet@wwwtavendo: ~/txpostgres/testing $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment