Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with google keep #100

Closed
ewen-lbh opened this issue Jul 2, 2020 · 0 comments
Closed

Crash with google keep #100

ewen-lbh opened this issue Jul 2, 2020 · 0 comments
Assignees
Labels
bug Something isn't working urgent Urgent stuff, like major bugs
Milestone

Comments

@ewen-lbh
Copy link
Owner

ewen-lbh commented Jul 2, 2020

12:46 ❯ idea "https://www.howtogeek.com/356087/how-to-automatically-enable-windows-10s-dark-theme-at-night/" -#ricing -ccya
πŸ”‘ Logging in...
βœ… Logged in.
Traceback (most recent call last):
  File "/home/ewen/.local/bin/ideaseed", line 8, in <module>
    sys.exit(run())
  File "/home/ewen/.local/lib/python3.7/site-packages/ideaseed/cli.py", line 153, in run
    push_to_gkeep(args)
  File "/home/ewen/.local/lib/python3.7/site-packages/ideaseed/gkeep.py", line 137, in push_to_gkeep
    color=args["--color"],
  File "/home/ewen/.local/lib/python3.7/site-packages/ideaseed/dumb_utf8_art.py", line 150, in make_google_keep_art
    if tags
  File "/home/ewen/.local/lib/python3.7/site-packages/ideaseed/dumb_utf8_art.py", line 149, in <listcomp>
    tags="\n\n" + "  ".join([format_label(t, hex_color or 0xDDD) for t in tags])
  File "/home/ewen/.local/lib/python3.7/site-packages/ideaseed/dumb_utf8_art.py", line 264, in format_label
    text_color = readable_text_color_on(color) if text_color is None else text_color
  File "/home/ewen/.local/lib/python3.7/site-packages/ideaseed/utils.py", line 41, in readable_text_color_on
    r, g, b = hex_to_rgb(background)
  File "/home/ewen/.local/lib/python3.7/site-packages/ideaseed/utils.py", line 57, in hex_to_rgb
    return tuple(int(hexstring[i : i + 2], 16) for i in (0, 2, 4))
  File "/home/ewen/.local/lib/python3.7/site-packages/ideaseed/utils.py", line 57, in <genexpr>
    return tuple(int(hexstring[i : i + 2], 16) for i in (0, 2, 4))
TypeError: 'int' object is not subscriptable
@ewen-lbh ewen-lbh added bug Something isn't working urgent Urgent stuff, like major bugs labels Jul 2, 2020
@ewen-lbh ewen-lbh self-assigned this Jul 2, 2020
@ewen-lbh ewen-lbh added this to the 0.12.0 milestone Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working urgent Urgent stuff, like major bugs
Projects
None yet
Development

No branches or pull requests

1 participant