Explorar o código

celery.app.bugreport now supports app argument

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
99eea5f9d8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      celery/app/__init__.py

+ 2 - 2
celery/app/__init__.py

@@ -45,8 +45,8 @@ app_or_default = None
 default_loader = os.environ.get('CELERY_LOADER') or 'default'  # XXX
 
 
-def bugreport():
-    return current_app().bugreport()
+def bugreport(app=None):
+    return (app or current_app()).bugreport()
 
 
 def _app_or_default(app=None):