From f82cc502bc901bb61a5dd1e69af2a0cb86108794 Mon Sep 17 00:00:00 2001 From: Shubham Sharma Date: Mon, 19 Jun 2017 13:28:32 +0530 Subject: [PATCH] Fixed empty text error --- pyfox/commands.py | 2 ++ setup.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyfox/commands.py b/pyfox/commands.py index d05f530..7b76608 100644 --- a/pyfox/commands.py +++ b/pyfox/commands.py @@ -77,6 +77,8 @@ def get_bottom_toolbar_tokens(cli): completer=sql_completer, get_title=lambda: "Foxtrot", enable_history_search=True, get_bottom_toolbar_tokens=get_bottom_toolbar_tokens, style=style) + if query_text is None or len(query_text) == 0: + continue results = self.text_processor.process(query_text) PagedPresenter(JsonFormatter()).present(results) self._update_completion(results) diff --git a/setup.py b/setup.py index c788ac9..ca64d90 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,12 @@ setup( name = 'pyfox', packages = ['pyfox'], - version = '0.17', + version = '0.18', description = 'Shell for foxtrot', author = 'Shubham Sharma', author_email = 'shubham.sha12@gmail.com', url = 'https://github.com/gabber12/pyfox', - download_url = 'https://github.com/gabber12/pyfox/archive/0.17.tar.gz', + download_url = 'https://github.com/gabber12/pyfox/archive/0.18.tar.gz', classifiers = [], entry_points = { 'console_scripts': ['foxtrot=pyfox.commands:main'],