X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/6285de9c71f4ea14723dc752aa8048efd150a47a..7f32a60f31bd104bc04c102bf6c66dd2af7220e7:/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)