diff options
-rwxr-xr-x | wikiquery | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,7 +7,7 @@ import wikipedia from functools import partial -version = "0.1.5" +version = "0.1.7" def stringify(o): if isinstance(o, list): @@ -60,6 +60,8 @@ def summary(topic, index): print "index out of range, options are: [%s]" % stringify(e.options) else: display(e.options) + except wikipedia.exceptions.PageError as e: + print "No wikipedia results found for %s" %topic def parse_args(): args = sys.argv[1:] |