muffin 1.1.1__tar.gz → 1.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {muffin-1.1.1 → muffin-1.1.2}/PKG-INFO +1 -1
- {muffin-1.1.1 → muffin-1.1.2}/muffin/manage.py +6 -2
- {muffin-1.1.1 → muffin-1.1.2}/pyproject.toml +1 -1
- {muffin-1.1.1 → muffin-1.1.2}/README.rst +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/__init__.py +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/app.py +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/constants.py +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/errors.py +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/handler.py +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/plugins.py +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/py.typed +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/pytest.py +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/types.py +0 -0
- {muffin-1.1.1 → muffin-1.1.2}/muffin/utils.py +0 -0
@@ -253,7 +253,11 @@ class Manager:
|
|
253
253
|
self.parser.print_help()
|
254
254
|
sys.exit(1)
|
255
255
|
|
256
|
-
pargs =
|
256
|
+
pargs = []
|
257
|
+
sig = inspect.signature(fn)
|
258
|
+
for name, param in sig.parameters.items():
|
259
|
+
if param.kind == param.VAR_POSITIONAL:
|
260
|
+
pargs.extend(kwargs.pop(name, []))
|
257
261
|
|
258
262
|
if not inspect.iscoroutinefunction(fn):
|
259
263
|
return fn(*pargs, **kwargs)
|
@@ -290,7 +294,7 @@ def cli():
|
|
290
294
|
app = import_app(args_.app)
|
291
295
|
app.logger.info("Application is loaded: %s", app.cfg.name)
|
292
296
|
|
293
|
-
except ImportError:
|
297
|
+
except (ImportError, ModuleNotFoundError):
|
294
298
|
logging.exception("Failed to import application")
|
295
299
|
return sys.exit(1)
|
296
300
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|