diff -r 2f2b2152580f -r 9900a8df922f plcopen/structures.py --- a/plcopen/structures.py Fri Oct 12 10:42:47 2018 +0300 +++ b/plcopen/structures.py Fri Oct 12 11:14:34 2018 +0300 @@ -266,7 +266,7 @@ Function_decl_copy = Function_decl.copy() Current_section["list"].append(Function_decl_copy) else: - raise "First function must be in a category" + raise ValueError("First function must be in a category") return Standard_Functions_Decl