[Spambayes-checkins] spambayes/spambayes Dibbler.py,1.11,1.12
Richie Hindle
richiehindle at users.sourceforge.net
Wed Dec 31 09:09:38 EST 2003
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv25721
Modified Files:
Dibbler.py
Log Message:
Fix for 842984: If webbrowser.open_new() fails, print a message
saying "Please point your web browser at http://localhost:8880/"
rather than bombing out.
Index: Dibbler.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/Dibbler.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Dibbler.py 16 Dec 2003 05:06:34 -0000 1.11
--- Dibbler.py 31 Dec 2003 14:09:36 -0000 1.12
***************
*** 690,694 ****
if launchBrowser:
! webbrowser.open_new("http://localhost:%d/" % context._HTTPPort)
asyncore.loop(map=context._map)
--- 690,698 ----
if launchBrowser:
! try:
! url = "http://localhost:%d/" % context._HTTPPort
! webbrowser.open_new(url)
! except webbrowser.Error, e:
! print "\n%s.\nPlease point your web browser at %s." % (e, url)
asyncore.loop(map=context._map)
More information about the Spambayes-checkins
mailing list