Skip to content

Commit

Permalink
Warn, do not crash on old casacore
Browse files Browse the repository at this point in the history
  • Loading branch information
tammojan committed Apr 16, 2020
1 parent b64d8b1 commit 46282d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def find_casacore():
casacoreversion = getCasacoreVersion()
except:
# getVersion was fixed in casacore 2.3.0
raise RuntimeError("Your casacore version is older than 2.3.0! You need to upgrade your casacore.")
warnings.warn("Your casacore version is older than 2.3.0! You need to upgrade your casacore.")
else:
if LooseVersion(casacoreversion.decode()) < LooseVersion(__mincasacoreversion__):
raise RuntimeError("Your casacore version is too old. Minimum is " + __mincasacoreversion__ +
", you have " + casacoreversion.decode('utf-8'))
warnings.warn("Your casacore version is too old. Minimum is " + __mincasacoreversion__ +
", you have " + casacoreversion.decode('utf-8'))

if not find_library_file(casa_python):
warnings.warn(no_casacore_error)
Expand Down

0 comments on commit 46282d3

Please sign in to comment.