xeger / awsume-1password-plugin

Automates awsume MFA entry via 1Password CLI.
MIT License
9 stars 5 forks source link

fix ValueError: unsupported format character ',' (0x2c) at index 27 #10

Open christianmeyer opened 3 months ago

christianmeyer commented 3 months ago

In context of AWS Identity Center based profiles I observed an error out of a typo in the error handling, which this is the fix for.

Traceback (most recent call last):
  File "/Users/username/.local/pipx/venvs/awsume/lib/python3.12/site-packages/1password.py", line 110, in pre_get_credentials
    'No access key for profile %, skip plugin flow'
ValueError: unsupported format character ',' (0x2c) at index 27
sogaoh commented 1 month ago

I ran into the same problem. I think it's a reasonable fix, please merge.