diff options
Diffstat (limited to 'rpkid/rpki/sql.py')
-rw-r--r-- | rpkid/rpki/sql.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rpkid/rpki/sql.py b/rpkid/rpki/sql.py index 85c85a6a..6cab30d9 100644 --- a/rpkid/rpki/sql.py +++ b/rpkid/rpki/sql.py @@ -67,6 +67,7 @@ class sql_persistant(object): key, we check for a cache hit directly in the hope of bypassing the SQL lookup entirely. """ + assert isinstance(id, (int, long)) key = (cls, id) if key in gctx.sql_cache: return gctx.sql_cache[key] |