From 1e9f9a88325885a6dfffb27254c19d70cd8f139b Mon Sep 17 00:00:00 2001 From: qibinzhou Date: Wed, 13 Feb 2019 16:47:55 -0500 Subject: [PATCH] Skip gcsfs registration to dask if dask is not installed --- gcsfs/dask_link.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcsfs/dask_link.py b/gcsfs/dask_link.py index c814b1dd..818175a1 100644 --- a/gcsfs/dask_link.py +++ b/gcsfs/dask_link.py @@ -1,5 +1,9 @@ +import logging + from .core import GCSFileSystem +logger = logging.getLogger('gcsfs') + def register(): """ @@ -121,4 +125,4 @@ def walk(self, path, refresh=False): try: register() except ImportError as e: - print(e) + logger.debug(e)