Commit c150ae8e authored by Marc Herbert's avatar Marc Herbert Committed by Chris Lamb
Browse files

Fix slightly misplaced .debug("Loading diff from stdin"). (Closes: !40)



Spotted by chance while looking at unrelated performance issue #84

This line was added by commit 509509e3

Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
parent 10840122
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -663,10 +663,11 @@ def run_diffoscope(parsed_args):
    set_locale()
    path1, path2 = parsed_args.path1, parsed_args.path2
    if path2 is None:
        logger.debug("Loading diff from stdin")
        if path1 == '-':
            logger.debug("Loading diff from stdin")
            difference = load_diff(sys.stdin, "stdin")
        else:
            logger.debug("Loading diff from %s", path1)
            try:
                difference = load_diff_from_path(path1)
            except json.JSONDecodeError: