Skip to content

Commit

Permalink
Handle None values for link channel name gracefully (conda#8680)
Browse files Browse the repository at this point in the history
Handle None values for link channel name gracefully
  • Loading branch information
msarahan authored May 17, 2019
2 parents a787a79 + df670f7 commit f26e4c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conda/core/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,8 @@ def diff_strs(unlink_prec, link_prec):
if channel_change or subdir_change:
if unlink_prec.channel.name is not None:
builder_left.append(unlink_prec.channel.name)
builder_right.append(link_prec.channel.name)
if link_prec.channel.name is not None:
builder_right.append(link_prec.channel.name)
if subdir_change:
builder_left.append("/" + unlink_prec.subdir)
builder_right.append("/" + link_prec.subdir)
Expand Down

0 comments on commit f26e4c2

Please sign in to comment.