Skip to content

Commit ed3cd01

Browse files
committed
change error log message.
1 parent bc01762 commit ed3cd01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datajoint/external.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def _need_checksum(local_filepath):
330330
)
331331
if not _need_checksum(local_filepath):
332332
logger.warning(
333-
f"WARNING SKIPPED CHECKSUM FOR FILE WITH HASH: {contents_hash}"
333+
f"Warning skipped checksum for file with hash: {contents_hash}"
334334
)
335335
# This will turn into a proper logger when we implement the datajoint logger
336336
return str(local_filepath), contents_hash

tests/test_filepath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def test_filepath_class_no_checksum():
206206
for handler in logger.handlers: # Clean up handler
207207
if handler.name == "test_limit_warning":
208208
logger.removeHandler(handler)
209-
assert "WARNING SKIPPED CHECKSUM FOR FILE WITH HASH" in log_contents
209+
assert "Warning skipped checksum for file with hash" in log_contents
210210

211211

212212
def test_filepath_cleanup(table=Filepath(), store="repo"):

0 commit comments

Comments
 (0)