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

ValueError: invalid literal for int() with base 16 #1

Open
karlcow opened this issue Aug 16, 2012 · 0 comments
Open

ValueError: invalid literal for int() with base 16 #1

karlcow opened this issue Aug 16, 2012 · 0 comments
Labels

Comments

@karlcow
Copy link
Owner

karlcow commented Aug 16, 2012

There is a pattern of errors which arise for some sites, probably encoding errors or wrong values in the CSS. We have to take care of them so the program doesn't crash but log the errors.

  File "/Library/Python/2.7/site-packages/cssutils/css/value.py", line 236, in __init__
    self.cssText = cssText
  File "/Library/Python/2.7/site-packages/cssutils/css/value.py", line 369, in _setCssText
    rgba = (int(2*v[1], 16),
ValueError: invalid literal for int() with base 16: '\xf1\xf1'

Sites where it occured

  • kinopoisk.ru
  • classifiedsgiant.com
  • auto.ru
  • bestbuy.com - mobile
  • touch.pixiv.net
  • wetter.com
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant