Author: duncan
Date: Mon Oct 30 12:08:53 2006
New Revision: 8518

Modified:
   branches/rel-1/freevo/src/video/plugins/reencode.py

Log:
Corrected debug printing when item does not have an attribute

Modified: branches/rel-1/freevo/src/video/plugins/reencode.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/reencode.py (original)
+++ branches/rel-1/freevo/src/video/plugins/reencode.py Mon Oct 30 12:08:53 2006
@@ -65,9 +65,9 @@
         for d in dir(item.info):
             print '%s: %s' % (d, eval('item.info.%s' % d))
         print 'type:', item.type
-        print 'mode:', item.mode
-        print 'name:', type(item.name)
-        print 'name:', item.name.encode('utf-8')
+        if hasattr(item, 'mode'): print 'mode:', item.mode
+        if hasattr(item, 'name'): print 'name:', type(item.name)
+        if hasattr(item, 'name'): print 'name:', item.name.encode('utf-8')
         print 'filename:', item.filename
         if hasattr(item, 'parentname'):
             print item.parentname

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to