From ff2ae11ac860f0365eb2cc0b011d0d75a4a40380 Mon Sep 17 00:00:00 2001 From: Ashley Sommer Date: Fri, 19 May 2017 13:00:01 +1000 Subject: [PATCH] Remove exception print(e) statement. --- sanic/response.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sanic/response.py b/sanic/response.py index 34a53387..9a304bb7 100644 --- a/sanic/response.py +++ b/sanic/response.py @@ -343,8 +343,6 @@ async def file_stream(location, chunk_size=4096, mime_type=None, headers=None, if len(content) < 1: break response.write(content) - except Exception as e: - print(e) finally: await _file.close() return # Returning from this fn closes the stream