From 247554c24890cc5fdb06b809e1b452da5ad22549 Mon Sep 17 00:00:00 2001 From: ksunden Date: Tue, 8 May 2018 23:20:32 -0500 Subject: [PATCH] Fix error handling --- pubs/commands/url_cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pubs/commands/url_cmd.py b/pubs/commands/url_cmd.py index 716653f..5591b77 100644 --- a/pubs/commands/url_cmd.py +++ b/pubs/commands/url_cmd.py @@ -30,6 +30,7 @@ def command(conf, args): webbrowser.open(url) except KeyError as e: - ui.error(key, 'has no url') + ui.error('{} has no url'.format(key)) + print(key) rp.close()