Skip to content

Commit

Permalink
catch unicode errors during writing and report path, see #134
Browse files Browse the repository at this point in the history
  • Loading branch information
posativ committed Mar 6, 2013
1 parent e1b165e commit df4927d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acrylamid/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit df4927d

Please sign in to comment.