diff options
Diffstat (limited to 'crocoite/behavior.py')
-rw-r--r-- | crocoite/behavior.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crocoite/behavior.py b/crocoite/behavior.py index c658699..95e8160 100644 --- a/crocoite/behavior.py +++ b/crocoite/behavior.py @@ -256,7 +256,8 @@ class ExtractLinks (Behavior): def onfinish (self): tab = self.loader.tab self.useScript (self.script) - self.links = list (set (tab.Runtime.evaluate (expression=self.script, returnByValue=True)['result']['value'])) + result = tab.Runtime.evaluate (expression=self.script, returnByValue=True) + self.links = list (set (result['result']['value'])) # available behavior scripts. Order matters, move those modifying the page # towards the end of available |