Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv13582/src
Modified Files:
osd.py
Log Message:
In _getfont include IOError as well as RuntimeError because of changes in recent
SDL_ttf2 or pygame.
Index: osd.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/osd.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** osd.py 12 Jun 2003 00:37:12 -0000 1.42
--- osd.py 13 Jun 2003 23:34:06 -0000 1.43
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.43 2003/06/13 23:34:06 rshortt
+ # In _getfont include IOError as well as RuntimeError because of changes in recent
SDL_ttf2 or pygame.
+ #
# Revision 1.42 2003/06/12 00:37:12 gsbarbieri
# Some bug fixes
***************
*** 1351,1355 ****
try:
font = pygame.font.Font(filename, ptsize)
! except RuntimeError:
print 'Couldnt load font "%s"' % filename
if DEBUG >= 2:
--- 1354,1358 ----
try:
font = pygame.font.Font(filename, ptsize)
! except (RuntimeError, IOError):
print 'Couldnt load font "%s"' % filename
if DEBUG >= 2:
***************
*** 1369,1373 ****
try:
font = pygame.font.Font(alt_fname, ptsize)
! except RuntimeError:
print 'Couldnt load alternate font "%s"' % alt_fname
raise
--- 1372,1376 ----
try:
font = pygame.font.Font(alt_fname, ptsize)
! except (RuntimeError, IOError):
print 'Couldnt load alternate font "%s"' % alt_fname
raise
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog