Author: dmeyer
Date: Thu Jan 11 20:02:59 2007
New Revision: 2378

Modified:
   trunk/popcorn/src/backends/manager.py

Log:
import_backend can raise ImportError

Modified: trunk/popcorn/src/backends/manager.py
==============================================================================
--- trunk/popcorn/src/backends/manager.py       (original)
+++ trunk/popcorn/src/backends/manager.py       Thu Jan 11 20:02:59 2007
@@ -56,9 +56,9 @@
             try:
                 # import the backend and register it.
                 exec('from %s import import_backend' % backend)
+                player_id, cls, get_caps_callback = import_backend()
             except ImportError, e:
                 continue
-            player_id, cls, get_caps_callback = import_backend()
             if player_id in _players:
                 raise ValueError, "Player '%s' already registered" % name
             

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to