Changeset b30a269 in trunk


Ignore:
Timestamp:
2011-01-28T15:20:06Z (14 years ago)
Author:
Zooko O'Whielacronx <zooko@…>
Branches:
master
Children:
49fd2e6
Parents:
f251bbe
Message:

setup: don't catch all Exception from check_requirement(), but only PackagingError? and ImportError?
I noticed this because I had accidentally inserted a bug which caused AssertionError? to be raised from check_requirement().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/__init__.py

    rf251bbe rb30a269  
    374374        try:
    375375            check_requirement(requirement, vers_and_locs)
    376         except Exception, e:
     376        except (ImportError, PackagingError), e:
    377377            errors.append("%s: %s" % (e.__class__.__name__, e))
    378378
Note: See TracChangeset for help on using the changeset viewer.