def createDictonary(self, student): try: Student.create(**student) except Exception: print("Error: unable to update database entry") traceback.print_exc()