fix bug caused by new version of psycopg 2.9 https://github.com/psycopg/psycopg2/issues/1293#issuecomment-862835147
fix bug caused by new version of psycopg 2.9 https://github.com/psycopg/psycopg2/issues/1293#issuecomment-862835147

jeromecc/doctoctocbot