From 87de34d0bb136dbe338e447174f59d00e7c4e0c0 Mon Sep 17 00:00:00 2001 From: tomaszdrozdz Date: Tue, 4 Aug 2020 18:57:52 +0200 Subject: [PATCH] New aproach for uploading sanic app config. --- sanic/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sanic/config.py b/sanic/config.py index b242ab6f..3216fd8c 100644 --- a/sanic/config.py +++ b/sanic/config.py @@ -161,7 +161,8 @@ def load_module_from_file_location(*args, **kwargs): location = args[1] _l = "args" else: - raise Exception("Provided arguments must conform to importlib.util.spec_from_file_location arguments") + raise Exception("Provided arguments must conform to importlib.util.spec_from_file_location arguments, \ + nonetheless location parameter has to be provided.") # 2) Parse location. if isinstance(location, bytes):