GNOME Bugzilla – Bug 586581
The use of baseexception.message is deprecated as of python2.6
Last modified: 2010-03-11 22:54:04 UTC
Please describe the problem: Filed on Launchpad: (https://bugs.launchpad.net/bugs/389889) Running glChess from Terminal produces the following deprecation warning: richard@richard-laptop:~$ /usr/games/glchess get fences failed: -1 param: 6, val: 0 /var/lib/python-support/python2.6/glchess/network.py:73: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 print 'Failed to load GGZ config: %s' % e.message Failed to load GGZ config: There is no real error message displayed. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 137144 [details] [review] This patch displays just the error message. This results in: andreas@apophis:~$ glchess Failed to load GGZ config: No such file or directory
Created attachment 137145 [details] [review] This patch also displays the filename The result of attaching this second patch would be: andreas@apophis:~$ glchess Failed to load GGZ config: No such file or directory: /home/andreas/.ggz/ggz-gtk.rc
Created attachment 137147 [details] Attaching the correct patch for the second option
Created attachment 137148 [details] [review] 3rd time's a charm, right?
Applied with changes for other .message usages
*** Bug 584881 has been marked as a duplicate of this bug. ***
*** Bug 598326 has been marked as a duplicate of this bug. ***
*** Bug 599035 has been marked as a duplicate of this bug. ***
*** Bug 611679 has been marked as a duplicate of this bug. ***
*** Bug 612375 has been marked as a duplicate of this bug. ***