Skip to content

Commit

Permalink
Don't crash if dask import fails
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleAalbers committed Dec 19, 2016
1 parent 44aabe7 commit ed8c97c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.5.0
current_version = 0.5.1
files = setup.py multihist.py
commit = True
tag = True
Expand Down
4 changes: 2 additions & 2 deletions multihist.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
WE_HAVE_DASK = True
DEFAULT_DASK_COMPUTE_KWARGS = dict(get=dask.multiprocessing.get)
COLUMNAR_DATA_SOURCES.append(dask.dataframe.DataFrame)
except ImportError:
except Exception: # Sometimes dask import succeeds, but throws error when starting up
WE_HAVE_DASK = False
pass

Expand All @@ -39,7 +39,7 @@

from operator import itemgetter

__version__ = '0.5.0'
__version__ = '0.5.1'


class CoordinateOutOfRangeException(Exception):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
test_requirements = requirements + ['flake8', 'pandas']

setup(name='multihist',
version='0.5.0',
version='0.5.1',
description='Convenience wrappers around numpy histograms',
long_description=readme + '\n\n' + history,
author='Jelle Aalbers',
Expand Down

0 comments on commit ed8c97c

Please sign in to comment.