Skip to content

Commit

Permalink
fixed a bug in measures_update, added exceptions tests to test_casaco…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
bgarwood committed Mar 28, 2024
1 parent 03d23d4 commit 6d70bdd
Show file tree
Hide file tree
Showing 2 changed files with 344 additions and 13 deletions.
3 changes: 2 additions & 1 deletion casaconfig/private/measures_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def measures_update(path=None, version=None, force=False, logger=None, auto_upda
import fcntl

from casaconfig import measures_available
from casaconfig import AutoUpdatesNotAllowed, UnsetMeasurespath, RemoteError, NotWritable, BadReadme, BadLock
from casaconfig import AutoUpdatesNotAllowed, UnsetMeasurespath, RemoteError, NotWritable, BadReadme, BadLock, NoReadme

from .print_log_messages import print_log_messages
from .get_data_lock import get_data_lock
Expand All @@ -149,6 +149,7 @@ def measures_update(path=None, version=None, force=False, logger=None, auto_upda
from .. import config as _config
path = _config.measurespath

print("casaconfig.measures_update path = %s" % path)
if path is None:
raise UnsetMeasurespath('measures_update: path is None and has not been set in config.measurespath. Provide a valid path and retry.')

Expand Down
Loading

0 comments on commit 6d70bdd

Please sign in to comment.