# HG changeset patch # User drewp@bigasterisk.com # Date 1370726187 0 # Node ID a9e34719cf86b70ec49b021041f28aa657923abb # Parent 3b1a435a29b818bd774483ba00772952d8e81d15 visible error when asco can't find a file Ignore-this: d5e0a5791321950aaf90af4034570396 diff -r 3b1a435a29b8 -r a9e34719cf86 light9/ascoltami/player.py --- 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: