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

TooMany: Got 2 rows; expecting 0 or 1. #2871

Closed
chadwhitacre opened this issue Oct 30, 2014 · 0 comments
Closed

TooMany: Got 2 rows; expecting 0 or 1. #2871

chadwhitacre opened this issue Oct 30, 2014 · 0 comments

Comments

@chadwhitacre
Copy link
Contributor

Go see #1395.

This ticket is a stub so that we have a connection from Sentry into GitHub.

Traceback (most recent call last):
  File "site-packages/algorithm.py", line 288, in run
    new_state = function(**deps.as_kwargs)
  File "aspen/algorithms/website.py", line 75, in get_response_for_resource
    return {'response': resource.respond(request)}
  File "aspen/resources/dynamic_resource.py", line 56, in respond
    exec self.pages[1] in context
  File "/app/www/on/%platform/%user_name/index.html.spt", line 13, in <module>
    platform, account = get_account_elsewhere(request)
  File "gratipay/models/account_elsewhere.py", line 192, in get_account_elsewhere
    account = AccountElsewhere.from_user_name(platform.name, user_name)
  File "gratipay/models/account_elsewhere.py", line 40, in from_user_name
    return cls._from_thing('user_name', platform, user_name)
  File "gratipay/models/account_elsewhere.py", line 53, in _from_thing
    """.format(thing), (platform, value), default=exception)
  File "postgres/__init__.py", line 463, in one
    return cursor.one(sql, parameters, default)
  File "postgres/cursors.py", line 105, in one
    out = self._some(sql, parameters, lo=0, hi=1)
  File "postgres/cursors.py", line 132, in _some
    raise TooMany(self.rowcount, lo, hi)
TooMany: Got 2 rows; expecting 0 or 1.

https://app.getsentry.com/gratipay/gratipay-com/group/30121697/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant