Bug 1029961 - [abrt] gtg-0.3-4.fc20: export.py:270:_update_combobox:KeyError: 'last_template'
Summary: [abrt] gtg-0.3-4.fc20: export.py:270:_update_combobox:KeyError: 'last_template'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gtg
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:e85cb10882a2f00655e40004df8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 15:42 UTC by Tim Waugh
Modified: 2013-12-14 03:50 UTC (History)
1 user (show)

Fixed In Version: gtg-0.3.1-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-14 03:50:16 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (1.22 KB, text/plain)
2013-11-13 15:42 UTC, Tim Waugh
no flags Details
File: environ (1.53 KB, text/plain)
2013-11-13 15:42 UTC, Tim Waugh
no flags Details

Description Tim Waugh 2013-11-13 15:42:33 UTC
Description of problem:
Happens when exporting tasks.

Version-Release number of selected component:
gtg-0.3-4.fc20

Additional info:
reporter:       libreport-2.1.9
cmdline:        /usr/bin/python /usr/bin/gtg
executable:     /usr/bin/gtg
kernel:         3.11.7-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1001

Truncated backtrace:
export.py:270:_update_combobox:KeyError: 'last_template'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/GTG/plugins/export/export.py", line 253, in show_dialog
    self._update_combobox()
  File "/usr/lib/python2.7/site-packages/GTG/plugins/export/export.py", line 270, in _update_combobox
    if path == self.preferences["last_template"]:
KeyError: 'last_template'

Local variables in innermost frame:
templates: ['/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_statusrpt.txt', '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_textual.txt', '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_simple.html', '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_pocketmod.tex', '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_sexy.html']
i: 0
self: <GTG.plugins.export.export.PluginExport instance at 0x2890488>
active_entry: None
template: <GTG.plugins.export.templates.Template instance at 0x2db6440>
path: '/usr/lib/python2.7/site-packages/GTG/plugins/export/export_templates/template_statusrpt.txt'
model: <gtk.ListStore object at 0x2dd8eb0 (GtkListStore at 0x20e7ec0)>

Comment 1 Tim Waugh 2013-11-13 15:42:44 UTC
Created attachment 823492 [details]
File: backtrace

Comment 2 Tim Waugh 2013-11-13 15:42:49 UTC
Created attachment 823493 [details]
File: environ

Comment 3 Tim Waugh 2013-11-13 15:47:29 UTC
FWIW, changing that line to this works around the problem here:

    if path == self.preferences.get("last_template"):

Comment 4 Fedora Update System 2013-11-27 08:44:02 UTC
gtg-0.3.1-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/gtg-0.3.1-1.fc20

Comment 5 Fedora Update System 2013-11-27 16:08:57 UTC
Package gtg-0.3.1-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gtg-0.3.1-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-22265/gtg-0.3.1-1.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-12-14 03:50:16 UTC
gtg-0.3.1-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.