From e912be417aba2a77ac70cdc88dce914a790f774d Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Thu, 15 May 2014 22:08:14 +0200 Subject: [PATCH] File list filtering: If no files, return a newline. --- nintendo_nas_server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nintendo_nas_server.py b/nintendo_nas_server.py index 304485d..f4f27b8 100644 --- a/nintendo_nas_server.py +++ b/nintendo_nas_server.py @@ -231,6 +231,9 @@ class NintendoNasHTTPServerHandler(BaseHTTPServer.BaseHTTPRequestHandler): if matched == True: output += line + '\r\n' + if output == '': + # if nothing matches, at least return a newline; Pokemon BW at least expects this and will error without it + output = '\r\n' return output