PLCGenerator.py
changeset 1614 f8f05f849831
parent 1603 18279f12a6be
child 1626 0779c1b18c01
--- a/PLCGenerator.py	Fri Dec 23 18:40:31 2016 +0300
+++ b/PLCGenerator.py	Mon Dec 26 13:49:38 2016 +0300
@@ -393,6 +393,11 @@
             single = task.getsingle()
             # Single argument if exists
             if single is not None:
+                if len(single) == 0:
+                    msg = _("Source signal has to be defined for single task '{a1}' in resource '{a2}.{a3}'.").\
+                          format(a1 = task.getname(), a2 = config_name, a3 = resource.getname())
+                    raise PLCGenException, msg
+
                 if single[0]=='[' and single[-1]==']' :
                     SNGLKW = "MULTI"
                 else: