GError Exception Handling connection.py