# HG changeset patch # User Nicolas Dumazet # Date 2009-04-08 05:15:18 # Node ID 82e28c7be8fb6bd9e27d47267a637ee0dd0d115b # Parent 389e2820280d8e897fbfbdd24bc019d6b794fcf7 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. diff --git a/hgext/inotify/__init__.py b/hgext/inotify/__init__.py --- a/hgext/inotify/__init__.py +++ b/hgext/inotify/__init__.py @@ -58,7 +58,7 @@ def reposetup(ui, repo): 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):