dhuseby / cargo-bootstrap

Bootstrapping script for Rust Cargo when cross-compilation is difficult or impossible.
BSD 2-Clause "Simplified" License
37 stars 9 forks source link

Don't set self._dir outside of a class #8

Closed stevenjm closed 9 years ago

stevenjm commented 9 years ago

There is no self in this context, so what actually happens is that the original exception is masked by a NameError. There's limited value in unsetting a variable immediately prior to halting with an exception anyway, so just remove this try/except entirely.