projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f251bbe
)
setup: don't catch all Exception from check_requirement(), but only PackagingError...
author
Zooko O'Whielacronx
<zooko@zooko.com>
Fri, 28 Jan 2011 15:20:06 +0000
(08:20 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Fri, 28 Jan 2011 15:20:06 +0000
(08:20 -0700)
I noticed this because I had accidentally inserted a bug which caused AssertionError to be raised from check_requirement().
src/allmydata/__init__.py
patch
|
blob
|
history
diff --git
a/src/allmydata/__init__.py
b/src/allmydata/__init__.py
index 6bb20d81a169a16824d29f0afcdbeace4e35c512..c404276ceb80fa4309d9e3097c51cf749a6bdbcf 100644
(file)
--- a/
src/allmydata/__init__.py
+++ b/
src/allmydata/__init__.py
@@
-373,7
+373,7
@@
def check_all_requirements():
for requirement in install_requires:
try:
check_requirement(requirement, vers_and_locs)
- except
Exception
, e:
+ except
(ImportError, PackagingError)
, e:
errors.append("%s: %s" % (e.__class__.__name__, e))
if errors: