From 29c77e1a048847b761defb437acf06a22f747793 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 19 Jan 2008 16:48:45 +0000 Subject: [PATCH] Hack xmlrpclib to stop from dieing with long numbers. --- deluge/xmlrpclib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/xmlrpclib.py b/deluge/xmlrpclib.py index 9305e1018..5bd6171a4 100644 --- a/deluge/xmlrpclib.py +++ b/deluge/xmlrpclib.py @@ -657,8 +657,8 @@ class Marshaller: dispatch[bool] = dump_bool def dump_long(self, value, write): - if value > MAXINT or value < MININT: - raise OverflowError, "long int exceeds XML-RPC limits" + #if value > MAXINT or value < MININT: + # raise OverflowError, "long int exceeds XML-RPC limits" write("") write(str(int(value))) write("\n")