From 01159575b282c4de8ea361d3b5586c40673ddec8 Mon Sep 17 00:00:00 2001 From: stamparm Date: Thu, 11 Jul 2013 10:11:43 +0200 Subject: [PATCH] Fix for an Issue #488 --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index 951e83310..530575df0 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1466,7 +1466,7 @@ def _cleanupOptions(): if conf.csvDel: conf.csvDel = conf.csvDel.decode("string_escape") # e.g. '\\t' -> '\t' - if conf.torPort and conf.torPort.isdigit(): + if conf.torPort and isinstance(conf.torPort, basestring) and conf.torPort.isdigit(): conf.torPort = int(conf.torPort) if conf.torType: