Skip to content

Conversation

dmalan
Copy link
Member

@dmalan dmalan commented Feb 27, 2018

No description provided.

src/cs50/sql.py Outdated
# PostgreSQL
matches = re.search(r"^\((psycopg2\.OperationalError)\) (.+)$", str(e))
if matches:
return matches.group(1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would that return psycopg2.OperationalError instead of the actual error message?

@dmalan
Copy link
Member Author

dmalan commented Mar 10, 2018

Weird, not sure why I had the dupe parens. Look better now?

@kzidane kzidane merged commit 4afc998 into master Mar 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants