From 270e42e5bb8417cefd4455cc4697243b49f8cac5 Mon Sep 17 00:00:00 2001 From: Ruben Verweij Date: Sat, 24 Apr 2021 15:36:01 +0200 Subject: [PATCH] Test importlib import on travis --- nd2reader/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nd2reader/__init__.py b/nd2reader/__init__.py index 14bcdda..970eb63 100644 --- a/nd2reader/__init__.py +++ b/nd2reader/__init__.py @@ -10,4 +10,4 @@ import importlib.metadata as importlib_metadata try: __version__ = importlib_metadata.version(__name__) except: - print('Unable to read version number') + raise ValueError('Unable to read version number')