diff options
| author | ryanss | 2015-03-09 10:34:48 -0400 |
|---|---|---|
| committer | ryanss | 2015-03-09 10:34:48 -0400 |
| commit | a8749a73c4ca4f835c68253b89617e12cc7c9d8d (patch) | |
| tree | 3526164ceaca95e36328d49d2d64438f77260ddd | |
| parent | ccbd086339e8634a97ce79d358bdb8cf288c80e0 (diff) | |
| parent | 1e73febc325a288b7ce77e932fb9b340001d2410 (diff) | |
| download | vim-hn-a8749a73c4ca4f835c68253b89617e12cc7c9d8d.tar.gz | |
Merge pull request #30 from kalekseev/fix-httperror
Fix HTTPError message
| -rw-r--r-- | ftplugin/hackernews.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftplugin/hackernews.py b/ftplugin/hackernews.py index 001c576..a055dba 100644 --- a/ftplugin/hackernews.py +++ b/ftplugin/hackernews.py @@ -80,7 +80,7 @@ def main(): news2 = json.loads(urlopen(API_URL+"/news2", timeout=5) .read().decode('utf-8')) except HTTPError: - print("HackerNews.vim Error: %s" % str(sys.exc_info()[1][0])) + print("HackerNews.vim Error: %s" % str(sys.exc_info()[1].reason)) return except: print("HackerNews.vim Error: HTTP Request Timeout") |
