# HG changeset patch
# User lbessard
# Date 1231517276 -3600
# Node ID 7ee96191c4760e83b407a035c5449e7899498f45
# Parent  5b3083695c8c8f06c360246ae5d1d659028459a5
Warning on modulo by zero fixed

diff -r 5b3083695c8c -r 7ee96191c476 plugger.py
--- a/plugger.py	Sun Jan 04 17:30:34 2009 +0100
+++ b/plugger.py	Fri Jan 09 17:07:56 2009 +0100
@@ -1105,7 +1105,7 @@
         for v in self._VariablesList :
             if v["vartype"] == "FB" and v["type"] == "PYTHON_EVAL":
                 python_eval_fb_list.append(v)
-        python_eval_fb_count = len(python_eval_fb_list)
+        python_eval_fb_count = max(1, len(python_eval_fb_list))
         
         # prepare debug code
         python_code = targets.code("plc_python") % {