summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sievelib/factory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sievelib/factory.py b/sievelib/factory.py
index d75c871..f4e4bee 100644
--- a/sievelib/factory.py
+++ b/sievelib/factory.py
@@ -133,6 +133,8 @@ class FiltersSet(object):
action.check_next_arg("tag", arg)
elif isinstance(arg, list):
action.check_next_arg("stringlist", arg)
+ elif isinstance(arg, int):
+ action.check_next_arg("number", arg)
ifcontrol.addchild(action)
return ifcontrol