diff --git a/src/aiida/cmdline/commands/cmd_plugin.py b/src/aiida/cmdline/commands/cmd_plugin.py index 04490fb2da..80dd6855ed 100644 --- a/src/aiida/cmdline/commands/cmd_plugin.py +++ b/src/aiida/cmdline/commands/cmd_plugin.py @@ -48,15 +48,14 @@ def plugin_list(entry_point_group, entry_point): echo.echo_critical(str(exception)) else: try: - if (inspect.isclass(plugin) and issubclass(plugin, Process)) or plugin.is_process_function: + if (inspect.isclass(plugin) and issubclass(plugin, Process)) or ( + False if not hasattr(plugin, 'is_process_function') else plugin.is_process_function + ): print_process_info(plugin) else: echo.echo(str(plugin.get_description())) except AttributeError: - try: - echo.echo(str(plugin.get_description())) - except AttributeError: - echo.echo_error(f'No description available for {entry_point}') + echo.echo_error(f'No description available for {entry_point}') else: entry_points = get_entry_point_names(entry_point_group) if entry_points: