From 4bf05b36c91c5c545f44a1793c582041d08dc331 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Thu, 29 Aug 2013 20:48:22 +0800 Subject: [PATCH] Add catch for git.io assigning the same ID twice, provide alternative custom url ![What the hell, git.io](http://i.imgur.com/oED3qPD.png) --- plugins/github.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/github.py b/plugins/github.py index 04c52d5..fc1182a 100644 --- a/plugins/github.py +++ b/plugins/github.py @@ -60,6 +60,8 @@ def ghissues(inp): title = data["title"] summary = truncate(data["body"]) gitiourl = gitio(data["html_url"]) + if "Failed to get URL" in gitiourl: + gitiourl = gitio(data["html_url"] + " " + repo.split("/")[1] + number) if summary == "": return fmt1 % (number, state, user, title, gitiourl) else: