Skip to content

Commit

Permalink
A bugfix I'm not confident about.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewRalston committed Jun 2, 2021
1 parent 79d5399 commit 808d036
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kmerdb/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ class Kmer(Base):
logger.debug("beginning to process all records of the {0} k-mer".format(kid))


row = session.query(Kmer).filter_by(id=kid+1).first()
row = session.query(Kmer).filter_by(id=kid).first()
if row is None:
logger.error(kid+1)
raise RuntimeError("Could not locate k-mer with id {0} in the Postgres table".format(kid+1))
logger.error(kid)
raise RuntimeError("Could not locate k-mer with id {0} in the Postgres table".format(kid))


logger.debug("Before: {0}".format(len(row.reverses)))
Expand Down

0 comments on commit 808d036

Please sign in to comment.