diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2007-01-22 21:05:59 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2007-01-22 21:05:59 +0300 |
commit | 290154189fcb1e9c0b15fb2768cab5c162ec0968 (patch) | |
tree | 3d82f7148f0a3c6ebff89188853efc52175f59e3 /src/adhoc_commands.py | |
parent | 284066fe407eeda8efeef372a6411e421ec9bc00 (diff) |
prevent other client's bug. fixes #2910
Diffstat (limited to 'src/adhoc_commands.py')
-rw-r--r-- | src/adhoc_commands.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/adhoc_commands.py b/src/adhoc_commands.py index 84469cc29..453afffae 100644 --- a/src/adhoc_commands.py +++ b/src/adhoc_commands.py @@ -442,7 +442,11 @@ class CommandWindow: # no commands => no commands stage # commands => command selection stage - items = response.getTag('query').getTags('item') + query = response.getTag('query') + if query: + items = query.getTags('item') + else: + items = [] if len(items)==0: self.commandlist = [] self.stage4() |