Author: duncan
Date: Sat Oct 13 16:53:25 2007
New Revision: 9966
Log:
[ 1812877 ] Crash when selecting a DATA DVD folder
Fix applied
Modified:
branches/rel-1/freevo/ChangeLog
branches/rel-1/freevo/src/plugins/df.py
Modified: branches/rel-1/freevo/ChangeLog
==============================================================================
--- branches/rel-1/freevo/ChangeLog (original)
+++ branches/rel-1/freevo/ChangeLog Sat Oct 13 16:53:25 2007
@@ -35,6 +35,7 @@
* Updated video item to include the full description (F#1777187)
* Fixed audio plug-in albumtree navigating back to the main menu (B#1798462)
* Fixed cd-rom drives eject causing a crash (B#1775892)
+ * Fixed df plug-in crashing when totalspace is zero (B#1812877)
* Fixed favourite crashing because of duplicate detection flag
(B#1778494,B#1777726)
* Fixed matching favourites, by initially restricting the search (B#1776072)
* Fixed screensaver crashing after a long run when an event is read
(B#1778894)
Modified: branches/rel-1/freevo/src/plugins/df.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/df.py (original)
+++ branches/rel-1/freevo/src/plugins/df.py Sat Oct 13 16:53:25 2007
@@ -60,7 +60,11 @@
freespacegb = freespacemb / 1024
totalspacemb = (totalspace / 1024) / 1024
totalspacegb = totalspacemb / 1024
- percentage = freespace * 100.0 / totalspace
+ try:
+ percentage = freespace * 100.0 / totalspace
+ except ZeroDivisionError, e:
+ percentage = 0.0
+ print e
if (totalspace == 0): # no space perhaps a bad path
diskfree = _( 'Bad Path' )
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog