invalid literal for int() with base 10: 'text' Traceback (most recent call last): File "/mnt/hd/web/1bpm.net/ml.csound/app/handler.py", line 386, in handle() File "/mnt/hd/web/1bpm.net/ml.csound/app/handler.py", line 379, in handle return Attachment(mailing_list).render({"ident": parts[2]}) File "/mnt/hd/web/1bpm.net/ml.csound/app/handler.py", line 292, in render messageid = db.Message.select().where(db.Message.id == idents[0]).get().messageid File "/usr/lib/python2.7/dist-packages/peewee.py", line 5911, in get return clone.execute(database)[0] File "/usr/lib/python2.7/dist-packages/peewee.py", line 1587, in inner return method(self, database, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/peewee.py", line 1658, in execute return self._execute(database) File "/usr/lib/python2.7/dist-packages/peewee.py", line 1809, in _execute cursor = database.execute(self) File "/usr/lib/python2.7/dist-packages/playhouse/postgres_ext.py", line 446, in execute sql, params = ctx.sql(query).query() File "/usr/lib/python2.7/dist-packages/peewee.py", line 558, in sql return obj.__sql__(self) File "/usr/lib/python2.7/dist-packages/peewee.py", line 2028, in __sql__ ctx.literal(' WHERE ').sql(self._where) File "/usr/lib/python2.7/dist-packages/peewee.py", line 558, in sql return obj.__sql__(self) File "/usr/lib/python2.7/dist-packages/peewee.py", line 1291, in __sql__ .sql(self.rhs)) File "/usr/lib/python2.7/dist-packages/peewee.py", line 562, in sql return self.sql(Value(obj)) File "/usr/lib/python2.7/dist-packages/peewee.py", line 558, in sql return obj.__sql__(self) File "/usr/lib/python2.7/dist-packages/peewee.py", line 1215, in __sql__ return ctx.value(self.value, self.converter) File "/usr/lib/python2.7/dist-packages/peewee.py", line 576, in value value = self.state.converter(value) File "/usr/lib/python2.7/dist-packages/peewee.py", line 3907, in db_value return value if value is None else self.adapt(value) ValueError: invalid literal for int() with base 10: 'text'