process_inputs: Remove pass on server mode check, optional s on print
Signed-off-by: Luis Garcia <luigi311.lg@gmail.com>
This commit is contained in:
parent
70d82edaa7
commit
a0bfecdc1a
3
av1an.py
3
av1an.py
|
@ -78,13 +78,12 @@ class Av1an:
|
|||
if self.d.get('mode') == 2:
|
||||
if self.d.get('input'):
|
||||
print("Server mode, input file ignored")
|
||||
pass
|
||||
elif self.d.get('input'):
|
||||
inputs = self.d.get('input')
|
||||
valid = np.array([i.exists() for i in inputs])
|
||||
|
||||
if not all(valid):
|
||||
print(f'Files do not exist: {", ".join([str(inputs[i]) for i in np.where(valid == False)[0]])}')
|
||||
print(f'File(s) do not exist: {", ".join([str(inputs[i]) for i in np.where(valid == False)[0]])}')
|
||||
sys.exit()
|
||||
|
||||
if len(inputs) > 1:
|
||||
|
|
Loading…
Reference in a new issue