https://bugs.gpodder.org/show_bug.cgi?id=874

           Summary: Crash in gui.py delete_episode_list when counting
                    locked_count
           Product: gPodder
           Version: 2.0
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: low
         Component: Application
        AssignedTo: [email protected]
        ReportedBy: [email protected]


I'm forwarding a bug sent by a Fedora user with the help of ABRT (Automatic bug
reporting tool):
https://bugzilla.redhat.com/show_bug.cgi?id=566566
Traceback at https://bugzilla.redhat.com/attachment.cgi?id=394977 - also copied
here:

Summary: TB6738038a gui.py:2012:<genexpr>:ValueError: invalid literal for int()
with base 10: ''

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/gpodder/gui.py", line 2771, in
on_btnDownloadedDelete_clicked
    self.delete_episode_list(episodes)
  File "/usr/lib/python2.6/site-packages/gpodder/gui.py", line 2012, in
delete_episode_list
    locked_count = sum(int(e.is_locked) for e in episodes if e.is_locked is not
None)
  File "/usr/lib/python2.6/site-packages/gpodder/gui.py", line 2012, in
<genexpr>
    locked_count = sum(int(e.is_locked) for e in episodes if e.is_locked is not
None)
ValueError: invalid literal for int() with base 10: ''

Local variables in innermost frame:
.0: <listiterator object at 0x7ff4240b0a90>
e: <gpodder.model.PodcastEpisode object at 0x2334090>

This is from 2.0 on Fedora 12, but browsing through gui.py it can be seen that
the
locked_count = sum(int(e.is_locked) for e in episodes if e.is_locked is not
None)
line is still there in git HEAD as of today.

Should some exception handling or something be added?

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to