projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7850d9b
)
Fixed invalid TAG error in becommands.subscribe.get_subscribers()
author
W. Trevor King
<wking@drexel.edu>
Sat, 26 Sep 2009 16:39:37 +0000
(12:39 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 26 Sep 2009 16:39:37 +0000
(12:39 -0400)
Check that the string has the right tag before attempting to parse it
:p.
becommands/subscribe.py
patch
|
blob
|
history
diff --git
a/becommands/subscribe.py
b/becommands/subscribe.py
index 2522f0c0456ba2acac4dbc051672942a6f57bdf5..0a23057afe6a326621825425a2bc738691edef4d 100644
(file)
--- a/
becommands/subscribe.py
+++ b/
becommands/subscribe.py
@@
-325,6
+325,8
@@
def get_subscribers(extra_strings, type, server, type_root,
['Jane Doe <J@doe.com>', 'John Doe <j@doe.com>']
"""
for string in extra_strings:
+ if not string.startswith(TAG):
+ continue
subscriber,types,servers = _parse_string(string, type_root)
type_match = False
if type in types: