Update of /cvsroot/freevo/freevo/src/audio/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv9810

Modified Files:
        coversearch.py 
Log Message:
Don't crash if no matches are found...
notify user and return.


Index: coversearch.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/audio/plugins/coversearch.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** coversearch.py      12 Jun 2003 17:12:32 -0000      1.4
--- coversearch.py      12 Jun 2003 23:41:11 -0000      1.5
***************
*** 14,17 ****
--- 14,21 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.5  2003/06/12 23:41:11  outlyer
+ # Don't crash if no matches are found...
+ # notify user and return.
+ #
  # Revision 1.4  2003/06/12 17:12:32  outlyer
  # Fallback to medium cover if it's available, only if that too is missing, give
***************
*** 117,121 ****
  
          amazon.setLicense('...') # must get your own key!
!         cover = amazon.searchByKeyword('%s %s' % (artist,album) , 
product_line="music")
          items = []
          
--- 121,134 ----
  
          amazon.setLicense('...') # must get your own key!
!         try:
!             cover = amazon.searchByKeyword('%s %s' % (artist,album) , 
product_line="music")
!         except amazon.AmazonError:
!             box.destroy() 
!             box = PopupBox(text='No matches for %s - %s' % (str(artist),str(album)))
!             box.show()
!             time.sleep(2)
!             box.destroy()
!             return
! 
          items = []
          




-------------------------------------------------------
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

Reply via email to