[mythtv-commits] Ticket #7245: MythTV Python bindings don't raise proper exceptions when unable to connect

MythTV mythtv at cvs.mythtv.org
Tue Oct 6 01:58:46 UTC 2009


#7245: MythTV Python bindings don't raise proper exceptions when unable to connect
--------------------------------+-------------------------------------------
 Reporter:  superm1 at ubuntu.com  |       Owner:  awithers
     Type:  patch               |      Status:  new     
 Priority:  minor               |   Milestone:  0.22    
Component:  Bindings - Python   |     Version:  head    
 Severity:  medium              |     Mlocked:  0       
--------------------------------+-------------------------------------------
 This causes users of the bindings (such as jamu) to incorrectly report
 failures.

 More details can be seen on
 https://bugs.edge.launchpad.net/ubuntu/+source/mythplugins/+bug/428473

 The jist is this though:
 Traceback (most recent call last):
   File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 366, in
 <module>
     mythdb = MythDB()
   File "/usr/lib/python2.6/dist-packages/MythTV/MythDB.py", line 102, in
 __init__
     raise MythError('Connection failed for \'%s\'@\'%s\' to database %s
 using password %s' % (dbconn['user'], dbconn['host'], dbconn['name'],
 dbconn['pass']))
 MythError: <unprintable instance object>

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7245>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list