summaryrefslogtreecommitdiff
path: root/dns/rdtypes/ANY/LOC.py
diff options
context:
space:
mode:
Diffstat (limited to 'dns/rdtypes/ANY/LOC.py')
-rw-r--r--dns/rdtypes/ANY/LOC.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dns/rdtypes/ANY/LOC.py b/dns/rdtypes/ANY/LOC.py
index 863c184..6266ae6 100644
--- a/dns/rdtypes/ANY/LOC.py
+++ b/dns/rdtypes/ANY/LOC.py
@@ -28,6 +28,8 @@ _default_hprec = 1000000.0
_default_vprec = 1000.0
def _exponent_of(what, desc):
+ if what == 0:
+ return 0
exp = None
for i in xrange(len(_pows)):
if what // _pows[i] == 0L: