File list filtering: If no files, return a newline.

This commit is contained in:
Admiral H. Curtiss
2014-05-15 22:08:14 +02:00
parent 809d7f90fa
commit e912be417a

View File

@@ -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