changeset 890:a9e34719cf86

visible error when asco can't find a file Ignore-this: d5e0a5791321950aaf90af4034570396
author drewp@bigasterisk.com
date Sat, 08 Jun 2013 21:16:27 +0000
parents 3b1a435a29b8
children 27d2f148b630
files light9/ascoltami/player.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/ascoltami/player.py	Sat Jun 08 08:22:39 2013 +0000
+++ b/light9/ascoltami/player.py	Sat Jun 08 21:16:27 2013 +0000
@@ -99,7 +99,11 @@
         """
         log.info("preloading %s", songPath)
         assert songPath.startswith("file://"), songPath
-        open(songPath[len("file://"):]).read()
+        try:
+            open(songPath[len("file://"):]).read()
+        except IOError as e:
+            log.error("couldn't preload %s, %r", songPath, e)
+            raise
 
     def currentTime(self):
         try: