From 5eb10029e420b5047ed04c6c440367c0193d6aa8 Mon Sep 17 00:00:00 2001 From: Karim Rahal Date: Fri, 16 Aug 2019 16:47:56 +0300 Subject: [PATCH] Fix arguments.output bug introduced in #57 --- Interlace/lib/core/input.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Interlace/lib/core/input.py b/Interlace/lib/core/input.py index 4921ddd..935eb33 100644 --- a/Interlace/lib/core/input.py +++ b/Interlace/lib/core/input.py @@ -103,8 +103,9 @@ def process_commands(arguments): output = OutputHelper(arguments) # removing the trailing slash if any - if arguments.output[-1] == "/": - arguments.output = arguments.output[:-1] + if arguments.output: + if arguments.output[-1] == "/": + arguments.output = arguments.output[:-1] if arguments.port: if "," in arguments.port: