Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Fix for TypeError when there is no active session (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
valkolovos authored and Trey Tomlinson committed Jan 6, 2020
1 parent 1bd95d5 commit c0c9dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws_jumpcloud/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def _format_profile_rows(profiles, sessions):
if p.role_to_assume:
aws_role = p.role_to_assume.aws_role
else:
aws_role = p.aws_role
aws_role = p.aws_role or "<unknown>"
if p.name in sessions:
expires_at = sessions[p.name].expires_at.astimezone().strftime("%c %Z")
else:
Expand Down

0 comments on commit c0c9dcc

Please sign in to comment.