From 4196912966bef8107375eb42bf5a29a04e7accfd Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 13 Aug 2015 22:58:19 +0100 Subject: [PATCH] [#2730] Fix Deluge dev versions not starting Using latest versions of setuptools (>11.3) resulted in deluge version strings that contain 'dev' to produce a ValueError. --- deluge/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/common.py b/deluge/common.py index 6dc03dcf4..f21e4b14c 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -781,7 +781,7 @@ class VersionSplit(object): ver = ver.lower() vs = ver.replace("_", "-").split("-") - self.version = [int(x) for x in vs[0].split(".")] + self.version = [int(x) for x in vs[0].split(".") if x.isdigit()] self.suffix = None self.dev = False if len(vs) > 1: