From 053cba31cb1ec64c40c28ed7e75eda51f3bd84ca Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 10 Jul 2008 05:05:52 +0000 Subject: [PATCH] Allow for shorter versions --- deluge/core/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/core/core.py b/deluge/core/core.py index 370758821..c2b9b5496 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -203,6 +203,8 @@ class Core( version = [] for value in deluge.common.get_version().split("."): version.append(int(value.split("-")[0])) + while len(version) < 4: + version.append(0) fingerprint = lt.fingerprint("DE", *version) # Start the libtorrent session