diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-07-17 20:54:28 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-07-17 20:54:28 +0200 |
commit | 7e86285887866ed10bc9868a0f9aa3b5e5094aba (patch) | |
tree | 226c542771937b92c28dd76b6b4e74435cd42a72 /.mypy.ini | |
parent | b9bbeafafb1f0750e4adaf12462b86094a5cad25 (diff) | |
download | fietsboek-7e86285887866ed10bc9868a0f9aa3b5e5094aba.tar.gz fietsboek-7e86285887866ed10bc9868a0f9aa3b5e5094aba.tar.bz2 fietsboek-7e86285887866ed10bc9868a0f9aa3b5e5094aba.zip |
track: don't fail when id is not set
This is just debug logging information, but accessing self.id for an
object that is not in the database raises an error, because self.id is
None and %d cannot format None. In this case, we simply use -1 as id
instead.
Diffstat (limited to '.mypy.ini')
0 files changed, 0 insertions, 0 deletions