Mercurial > hg-stable
changeset 8069:82e28c7be8fb
inotify: Do not raise TypeError when client.query returns None
When something went wrong in client.query, it returns None.
If inotify.debug=True, we will attempt in this case a zip(A, None, B), which
would raise a TypeError.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Wed, 08 Apr 2009 14:15:18 +0900 |
parents | 389e2820280d |
children | 28a72f620cde |
files | hgext/inotify/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/inotify/__init__.py Wed Apr 08 13:29:51 2009 +0900 +++ b/hgext/inotify/__init__.py Wed Apr 08 14:15:18 2009 +0900 @@ -58,7 +58,7 @@ if not ignored and not self.inotifyserver: result = client.query(ui, repo, files, match, False, clean, unknown) - if ui.config('inotify', 'debug'): + if result and ui.config('inotify', 'debug'): r2 = super(inotifydirstate, self).status( match, False, clean, unknown) for c,a,b in zip('LMARDUIC', result, r2):