Commits

Ali Gholami Rudi  committed c03fdff

interface: ignoring None from Environment.ask_completion()

  • Participants
  • Parent commits d5ef1b8

Comments (0)

Files changed (1)

File ropemode/interface.py

             self._offset = self.starting_offset + len(common_start)
         prompt = 'Completion for %s: ' % self.expression
         result = self.env.ask_completion(prompt, names, self.starting)
-        self._apply_assist(result)
+        if result is not None:
+            self._apply_assist(result)
 
     def lucky_assist(self, prefix):
         names = self._calculate_proposals()