muffin 1.1.1__tar.gz → 1.1.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: muffin
3
- Version: 1.1.1
3
+ Version: 1.1.3
4
4
  Summary: Muffin is a fast, simple and asyncronous web-framework for Python 3 (asyncio, trio, curio)
5
5
  License: MIT
6
6
  Keywords: asgi,web,web framework,asyncio,trio,curio
@@ -253,7 +253,11 @@ class Manager:
253
253
  self.parser.print_help()
254
254
  sys.exit(1)
255
255
 
256
- pargs = kwargs.pop("*", [])
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,8 +294,8 @@ 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:
294
- logging.exception("Failed to import application")
297
+ except ImportError as exc:
298
+ logging.error("Failed to import application: %s", exc)
295
299
  return sys.exit(1)
296
300
 
297
301
  try:
@@ -303,4 +307,4 @@ def cli():
303
307
  sys.exit(0)
304
308
 
305
309
 
306
- # ruff: noqa: T100, LOG015
310
+ # ruff: noqa: T100, LOG015, TRY400
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "muffin"
3
- version = "1.1.1"
3
+ version = "1.1.3"
4
4
  description = "Muffin is a fast, simple and asyncronous web-framework for Python 3 (asyncio, trio, curio)"
5
5
  readme = "README.rst"
6
6
  license = "MIT"
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