From 3484a158f2a4be1688a00ffbe89e78fad55ecf39 Mon Sep 17 00:00:00 2001 From: Roger Gammans Date: Sat, 7 Mar 2015 13:48:25 +0000 Subject: [PATCH] Fix Attribute error if matches_iter has not been initialised. AttributeError: 'NoneType' object has no attribute 'format --- bpython/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bpython/cli.py b/bpython/cli.py index 24a2e97bb..8264bf609 100644 --- a/bpython/cli.py +++ b/bpython/cli.py @@ -454,6 +454,8 @@ def complete(self, tab=False): Called whenever these should be updated, and called with tab """ + super(CLIRepl,self).complete(tab) + if self.paste_mode: self.scr.touchwin() #TODO necessary? return