diff options
| author | Tarek Ziade <tarek@ziade.org> | 2010-10-13 13:18:36 +0200 |
|---|---|---|
| committer | Tarek Ziade <tarek@ziade.org> | 2010-10-13 13:18:36 +0200 |
| commit | 794564bc035c7e353996429fe83619fdcbe52b7f (patch) | |
| tree | 56290b7e6ad69b97165c6a182fbaec46b0cd1c60 /distutils2 | |
| parent | 401ef1c827dfe7480d682e29e7ba9dad44a562e7 (diff) | |
| download | disutils2-794564bc035c7e353996429fe83619fdcbe52b7f.tar.gz | |
None as default
Diffstat (limited to 'distutils2')
| -rw-r--r-- | distutils2/dist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/distutils2/dist.py b/distutils2/dist.py index 15f56a4..d2820b3 100644 --- a/distutils2/dist.py +++ b/distutils2/dist.py @@ -883,7 +883,7 @@ Common commands: (see '--help-commands' for more) if hook_kind not in ('pre_hook', 'post_hook'): raise ValueError('invalid hook kind: %r' % hook_kind) - hooks = getattr(cmd_obj, hook_kind) + hooks = getattr(cmd_obj, hook_kind, None) if hooks is None: return |
