id_str may be None #1

Merged
merged 1 commit into from Aug 1, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

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):