Permalink
Browse files

id_str may be None

  • Loading branch information...
1 parent 6a15ddf commit 53dcb0b83039d507b5da53efdfba94df77a8846f @mmariani committed Jul 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ticketrelations/model.py
View
@@ -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):

0 comments on commit 53dcb0b

Please sign in to comment.