From 75ed5f767c2484f53833a225171331465391f714 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 20 Jul 2015 17:03:20 +0200 Subject: [PATCH] Fixes #1309 --- lib/takeover/udf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/takeover/udf.py b/lib/takeover/udf.py index 13ec70dfe..aa10b3c63 100644 --- a/lib/takeover/udf.py +++ b/lib/takeover/udf.py @@ -361,6 +361,9 @@ class UDF: warnMsg += "<= %d are allowed" % len(udfList) logger.warn(warnMsg) + if not isinstance(choice, int): + break + cmd = "" count = 1 udfToCall = udfList[choice - 1]