diff --git a/src/scripts/create_folder.py b/src/scripts/create_folder.py index 3e71cac..f6e87e3 100644 --- a/src/scripts/create_folder.py +++ b/src/scripts/create_folder.py @@ -149,9 +149,19 @@ try: print("WARN: parent.add(types.IecFolder) raised: %s" % e) if new_folder is None: + # Total miss -- dump dir(parent) to surface what API surface this + # SP actually exposes, so the next iteration can target it. Helps + # OPEN-BUGS-CROSS-REFERENCE Bug 1 diagnosis on unexpected SPs. + try: + api_attrs = sorted([a for a in dir(parent_object) if not a.startswith('_')]) + api_dump = ', '.join(api_attrs) + except Exception as de: + api_dump = '