Spaces:
Running
Running
Merge pull request #87 from jhj0517/fix-path-bug
Browse files
modules/base_interface.py
CHANGED
|
@@ -16,6 +16,6 @@ class BaseInterface:
|
|
| 16 |
@staticmethod
|
| 17 |
def remove_input_files(file_paths: List[str]):
|
| 18 |
for file_path in file_paths:
|
| 19 |
-
if not os.path.exists(file_path):
|
| 20 |
continue
|
| 21 |
os.remove(file_path)
|
|
|
|
| 16 |
@staticmethod
|
| 17 |
def remove_input_files(file_paths: List[str]):
|
| 18 |
for file_path in file_paths:
|
| 19 |
+
if file_path is None or not os.path.exists(file_path):
|
| 20 |
continue
|
| 21 |
os.remove(file_path)
|