Fix lint.

This commit is contained in:
Florian Bruhin 2015-06-12 11:22:37 +02:00
parent ea1921defd
commit 8ecc3a3bb0

View File

@ -1572,8 +1572,8 @@ class CommandDispatcher:
Args:
js_code: The string to evaluate.
"""
out = self._current_widget().page().mainFrame().evaluateJavaScript(
js_code)
frame = self._current_widget().page().mainFrame()
out = frame.evaluateJavaScript(js_code)
if out is None:
# Getting the actual error (if any) seems to be difficult. The