Skip to content

Commit 3412713

Browse files
committed
small fix to is_existing_file to avoid warnings from py3.8
1 parent 677d3dd commit 3412713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/engine/helpers_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def is_local_file(f):
537537

538538
def is_existing_file(value):
539539
""" checking if an object is an existing file"""
540-
if value is "":
540+
if isinstance(value, str) and value == "":
541541
return False
542542
try:
543543
return Path(value).exists()

0 commit comments

Comments
 (0)