Skip to content

Commit

Permalink
oops forgot re.compile(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojii committed Dec 27, 2011
1 parent ad32136 commit c28ef83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def errback(failure):
defered = getPage(ISSUES_URL_TPL % (self.conf['GITHUB_USER'], self.conf['GITHUB_PROJECT'], issue_id))
defered.addCallback(callback).addErrback(errback)

@routes('/issues/(?P<secretkey>\w{32})/')
@routes(re.compile('/issues/(?P<secretkey>\w{32})/'))
def webhook(self, request, secretkey):
rawdata = cgi.escape(request.args["payload"][0])
payload = json.loads(rawdata)
Expand Down

0 comments on commit c28ef83

Please sign in to comment.