diff -r 6cf16e5bfbf9 -r c52d1460cea8 PLCControler.py --- a/PLCControler.py Sat Aug 19 17:17:54 2017 +0300 +++ b/PLCControler.py Sat Aug 19 18:12:20 2017 +0300 @@ -1013,7 +1013,7 @@ ''' try: new_pou, error = LoadPou(pou_xml) - except: + except Exception: error = "" if error is not None: return _("Couldn't paste non-POU object.") @@ -2407,7 +2407,7 @@ try: instances, error = LoadPouInstances(text, bodytype) - except: + except Exception: instances, error = [], "" if error is not None or len(instances) == 0: return _("Invalid plcopen element(s)!!!")