Skip to content

Commit bd1999e

Browse files
fix #1201
1 parent 3199117 commit bd1999e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/external.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def upload_filepath(self, local_filepath):
278278

279279
# check if the remote file already exists and verify that it matches
280280
check_hash = (self & {"hash": uuid}).fetch("contents_hash")
281-
if check_hash:
281+
if check_hash.size:
282282
# the tracking entry exists, check that it's the same file as before
283283
if contents_hash != check_hash[0]:
284284
raise DataJointError(

0 commit comments

Comments
 (0)