Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mmdb_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import struct
import time
from typing import Union
from decimal import Decimal

from netaddr import IPSet, IPNetwork

Expand Down Expand Up @@ -205,6 +206,8 @@ def python_type_id(self, value):
return 8
else:
return 5
if value_type is Decimal:
return 3
raise TypeError("unknown type {value_type}".format(value_type=value_type))

def encode_meta(self, meta):
Expand Down