From eeb68cd74b48722eb07663fc7148b2f5ef13421d Mon Sep 17 00:00:00 2001 From: Matthew Pitkin <matthew.pitkin@ligo.org> Date: Thu, 11 Oct 2018 09:55:46 +0100 Subject: [PATCH] Add IOError --- bilby/core/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bilby/core/utils.py b/bilby/core/utils.py index 020c63138..9b3195aca 100644 --- a/bilby/core/utils.py +++ b/bilby/core/utils.py @@ -359,8 +359,8 @@ def get_version_information(): try: with open(version_file, 'r') as f: return f.readline().rstrip() - except: # noqa - return "No version information" + except IOError: + raise IOError("No version information file '.version' found") def get_progress_bar(module='tqdm'): -- GitLab