Skip to content

invalid literal for int() with base 10: '' when omitting role selection #94

Description

@JonRoma

If one hits return instead of selecting a role by number, one gets the error message invalid literal for int() with base 10: '', which is programmer-centric but not user-centric. Placing this in a loop with a message stating "Please select a role or enter 'q' to quit" might be more appropriate.

: aws login
Please choose the role you would like to assume:
     Account: 224588347132
         [ 0 ]: ApplicationServicesAdmins
     Account: 378517677616
         [ 1 ]: TechServicesStaff
     Account: 531841101767
         [ 2 ]: ApplicationServicesAdmins
     Account: 617683844790
         [ 3 ]: ApplicationServicesAdmins
     Account: 621331288878
         [ 4 ]: ApplicationServicesAdmins
     Account: 736533337653
         [ 5 ]: ADAdmins
Selection: 
invalid literal for int() with base 10: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions