(i_node_type)
| 33 | ) |
| 34 | |
| 35 | def get_error(i_node_type): |
| 36 | stats_type = ('activity', 'prepared', 'locks', 'config') |
| 37 | if f.__name__ in stats_type: |
| 38 | return precondition_required( |
| 39 | gettext("Please connect to the selected {0}" |
| 40 | " to view the table.".format(i_node_type)) |
| 41 | ) |
| 42 | else: |
| 43 | return precondition_required( |
| 44 | gettext("Please connect to the selected {0}" |
| 45 | " to view the graph.".format(i_node_type)) |
| 46 | ) |
| 47 | |
| 48 | # Below check handle the case where existing server is deleted |
| 49 | # by user and python server will raise exception if this check |
no test coverage detected