crash when adding exercises to a new workout

Bug #502696 reported by Jon Black
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pumped
Fix Released
High
Unassigned

Bug Description

If you create a workout and try to add an exercise, the following stack trace appears:

2010-01-03 20:45:38,612 INFO sqlalchemy.engine.base.Engine.0x...cd0c []
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/pumped/views/gui_gtk.py", line 531, in on_exercise_combo_changed
    self._result_id = self._workout_controller.add_result(self._workout_id, exercise.id)
  File "/usr/local/lib/python2.6/dist-packages/pumped/controllers/training_controller.py", line 91, in add_result
    result.workout = Workout.query.filter_by(id=workout_id).one()
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.6-py2.6.egg/sqlalchemy/orm/query.py", line 1326, in one
    raise orm_exc.NoResultFound("No row was found for one()")
sqlalchemy.orm.exc.NoResultFound: No row was found for one()

If the workout is first saved, and then edited to add the exercises, the error does not occur.

Tags: workouts
Jon Black (juan-black)
tags: added: workouts
Changed in pumped:
importance: Undecided → High
Jon Black (juan-black)
Changed in pumped:
status: New → Fix Committed
Jon Black (juan-black)
Changed in pumped:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.