Skip to content

Commit

Permalink
fixes io errors
Browse files Browse the repository at this point in the history
  • Loading branch information
digi604 committed Apr 25, 2019
1 parent c485dad commit b007c85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kudu/commands/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def on_any_event(self, event):
os.makedirs(dst_dirpath)

click.echo("Copying file: %s" % src_relpath, nl=False)
copyfile(src_path, dst_path)
try:
copyfile(src_path, dst_path)
except IOError as e:
click.echo(e)
click.echo("\rCopying file: %s, done." % src_relpath)


Expand Down

0 comments on commit b007c85

Please sign in to comment.