Skip to content

Commit c0e8e53

Browse files
committed
Fixed support with Python/Jython < 2.5.
1 parent b681130 commit c0e8e53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/robotremoteserver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ def _get_keyword(self, name):
184184
if name == 'stop_remote_server':
185185
return self.stop_remote_server
186186
kw = getattr(self._library, name, None)
187-
return kw if self._is_function_or_method(kw) else None
187+
if not self._is_function_or_method(kw):
188+
return None
189+
return kw
188190

189191
def _get_error_message(self, exc_type, exc_value):
190192
if exc_type in self._fatal_exceptions:

0 commit comments

Comments
 (0)