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

ValueError: 38.919354838784784 is not a a valid integer. #11

Open
sentry-io bot opened this issue Jul 15, 2020 · 0 comments
Open

ValueError: 38.919354838784784 is not a a valid integer. #11

sentry-io bot opened this issue Jul 15, 2020 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jul 15, 2020

Sentry Issue: LOGGI-WEB-AF7K

TypeError: integer argument expected, got float
  File "base/shortener.py", line 135, in true_char
    char = _converter(integer, _to_char())
  File "base/shortener.py", line 49, in _converter
    values = [to(value) for _is, to in rules.items() if _is(value)]
  File "base/shortener.py", line 49, in <listcomp>
    values = [to(value) for _is, to in rules.items() if _is(value)]
  File "base/shortener.py", line 111, in to_lower
    return chr(i + LOWER_OFFSET)

ValueError: 38.919354838784784 is not a a valid integer.
(3 additional frame(s) were not displayed)
...
  File "shares/notifications.py", line 659, in send_notification
    _send_sms(shareds, conf=sms_conf, **send_kw)
  File "shares/notifications.py", line 558, in _send_sms
    'short_url': shared.get_short_url(),
  File "shares/models.py", line 129, in get_short_url
    self.key = dehydrate(self.pk + SignedShared.SHORTENER_OFFSET)\
  File "base/shortener.py", line 161, in dehydrate
    string = true_char(remainder) + string
  File "base/shortener.py", line 137, in true_char
    raise ValueError('{} is not a a valid integer.'.format(integer))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants