Error when changing JPG Size Maximum value

Bug #380776 reported by Nadia Alramli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Critical
Nadia Alramli
0.2
Fix Released
Critical
Nadia Alramli

Bug Description

When you change the 'JPG Size Maximum' value in the save action and run execute you get this exception:

Traceback (most recent call last):
  File "/home/nadia/Desktop/phatch_0.1.6.bzr599-1_all/usr/share/pyshared/phatch/core/api.py", line 277, in apply_action
    photo = action.apply(photo,setting,cache)
  File "/home/nadia/Desktop/phatch_0.1.6.bzr599-1_all/usr/share/pyshared/phatch/actions/save.py", line 104, in apply
    info, filesize)
  File "/home/nadia/Desktop/phatch_0.1.6.bzr599-1_all/usr/share/pyshared/phatch/core/lib/formField.py", line 212, in get_field_filesize
    return self._get_field(label).get_size(info,base,label)
  File "/home/nadia/Desktop/phatch_0.1.6.bzr599-1_all/usr/share/pyshared/phatch/core/lib/formField.py", line 179, in _get_field
    return self._fields[label]
KeyError: 'JPG Size Tolerance'

The fix is to change the field 'PNG Size Tolerance' to 'JPG Size Tolerance'

Revision history for this message
Stani (stani) wrote :

Thanks for reporting this with the solution!

$ bzr commit -m "fix JPG size tolerance"
modified phatch/actions/save.py
Committed revision 604.

Changed in phatch:
assignee: nobody → Nadia Alramli (nadiana)
importance: Undecided → Critical
status: New → Fix Committed
Stani (stani)
Changed in phatch:
milestone: none → 0.2.1
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.