projects
/
dbuscron
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
523de8b
)
Don't match unset args
author
Konstantin Stepanov
<kstep@p-nut.info>
Mon, 18 Oct 2010 14:51:09 +0000
(17:51 +0300)
committer
Konstantin Stepanov
<kstep@p-nut.info>
Mon, 18 Oct 2010 14:51:09 +0000
(17:51 +0300)
dbuscron/bus.py
patch
|
blob
|
history
diff --git
a/dbuscron/bus.py
b/dbuscron/bus.py
index
33dfa31
..
c766860
100644
(file)
--- a/
dbuscron/bus.py
+++ b/
dbuscron/bus.py
@@
-97,12
+97,13
@@
class DbusRule(object):
if self._destination not in (None, message.get_destination()):
return False
- args_ = message.get_args_list()
- for i, arg in enumerate(args_):
- if i >= len(self._args):
- break
- if self._args[i] not in (None, arg):
- return False
+ if self._args is not None:
+ args_ = message.get_args_list()
+ for i, arg in enumerate(args_):
+ if i >= len(self._args):
+ break
+ if self._args[i] not in (None, arg):
+ return False
return True