Skip to content

Commit

Permalink
make worker check_config method optionnal
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Mar 6, 2015
1 parent e5f6b80 commit eb485d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gunicorn/arbiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def start(self):
self.log.info("Using worker: %s", self.cfg.worker_class_str)

# check worker class requirements
self.worker_class.check_config(self.cfg, self.log)
if hasattr(self.worker_class, "check_config"):
self.worker_class.check_config(self.cfg, self.log)

self.cfg.when_ready(self)

Expand Down

0 comments on commit eb485d2

Please sign in to comment.