Skip to content

Commit

Permalink
Ok, use 'raise' to see if we hit the 'except'
Browse files Browse the repository at this point in the history
  • Loading branch information
ashander committed Apr 16, 2017
1 parent 1aac950 commit 4994d03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import platform
import os
import os.path
from warnings import warn as loud_warn


def warn(message):
Expand All @@ -41,7 +40,7 @@ def warn(message):
else:
HAVE_NUMPY = True
except ImportError:
loud_warn("numpy not available. Some features will not work.")
raise Warning("numpy not available. Some features will not work.")

# First, we try to use setuptools. If it's not available locally,
# we fall back on ez_setup.
Expand Down

0 comments on commit 4994d03

Please sign in to comment.