def login(self): try: #taking inputs as variables email = self.lineEditEmail.text() passwordInput = self.lineEditPassword.text() passwordInput = ("('"+passwordInput+"',)") if (SQLStatements.getUserID(email) == "NoUser"): #if a user doesnt exist send a message box QMessageBox.warning(QMessageBox(), 'Error', 'User does not exist!') else: #taking inputs as variables userID = SQLStatements.getUserID(email) passwordCheck = SQLStatements.checkPassword(userID) passwordCheckString = str(passwordCheck) #if passwords do not match if (passwordInput != passwordCheckString): #tell user QMessageBox.warning(QMessageBox(), 'Error', 'Password incorrect!') else: #open progress window self.openProgressWindow(userID) except Exception as e: print(e)