Skip to content


id_str may be None #1

merged 1 commit into from

2 participants


With Postgres, when installing the plugin on an existing trac, the ticket_custom table is empty for values 'blocking', 'blockedby' and thus the plugin breaks when it receives a null value.


Thank you for the patch :)

@leihog leihog merged commit 86503a1 into leihog:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 26, 2012
  1. @mmariani

    id_str may be None

    mmariani committed
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1 ticketrelations/
2 ticketrelations/
@@ -9,7 +9,7 @@
def extract_ticket_ids(id_str):
numbers_re = re.compile(r'\d+', re.U)
- return set(int(n) for n in numbers_re.findall(id_str))
+ return set(int(n) for n in numbers_re.findall(id_str or ''))
class TicketLinks(object):
Something went wrong with that request. Please try again.