Permalink
Browse files

catch unicode errors during writing and report path, see #134

  • Loading branch information...
1 parent e1b165e commit df4927d903b6f2f0c3789da2bb7a70a5674d573a @posativ committed Mar 6, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 acrylamid/commands.py
View
@@ -219,6 +219,8 @@ def compile(conf, env):
try:
helpers.mkfile(buf, path, time.time()-tt, ns=v.name,
force=env.options.force, dryrun=env.options.dryrun)
+ except UnicodeError:
+ log.fatal(path)
finally:
buf.close()
tt = time.time()

0 comments on commit df4927d

Please sign in to comment.