X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/6285de9c71f4ea14723dc752aa8048efd150a47a..330b4d4054a7e9a47b376a1ba51e1ec8efe8e9a0:/src/sercom/sqlo.py diff --git a/src/sercom/sqlo.py b/src/sercom/sqlo.py index aba430a..c81e066 100644 --- a/src/sercom/sqlo.py +++ b/src/sercom/sqlo.py @@ -16,7 +16,7 @@ class BaseSQLObject(SQLObject): @classmethod def by(cls, **kw): try: - return cls.selectBy(limit=1, **kw)[0] + return cls.selectBy(**kw)[0] except IndexError: raise SQLObjectNotFound, "The object %s with columns %s does not exist" % (cls.__name__, kw)