aboutsummaryrefslogtreecommitdiff
path: root/mkiv.py
diff options
context:
space:
mode:
Diffstat (limited to 'mkiv.py')
-rw-r--r--mkiv.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/mkiv.py b/mkiv.py
index 5f5ea38..1cee6ed 100644
--- a/mkiv.py
+++ b/mkiv.py
@@ -72,7 +72,13 @@ if options.fuckit:
midi.read_midifile = fuckit(midi.read_midifile)
for fname in args:
- pat = midi.read_midifile(fname)
+ try:
+ pat = midi.read_midifile(fname)
+ except Exception:
+ import traceback
+ traceback.print_exc()
+ print fname, ': Exception occurred, skipping...'
+ continue
if pat is None:
print fname, ': Too fucked to continue'
continue