Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix startup failure when --noupgrade is passed #610

Merged
merged 2 commits into from

2 participants

@wynnw

Fix for errors caused by the django run_gunicorn code called by call_command() that reparses the command line with optparse.

@dcramer dcramer merged commit d42bee4 into getsentry:master

1 check passed

Details default The Travis build passed
@wynnw

Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 14, 2012
Commits on Oct 15, 2012
  1. Merge tag 'tags/5.0.16.1'

    Wynn Wilkes authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/sentry/management/commands/start.py
View
6 src/sentry/management/commands/start.py
@@ -68,5 +68,11 @@ def handle(self, service_name='http', address=None, upgrade=True, **options):
workers=options.get('workers'),
)
+ # remove command line arguments to avoid optparse failures with service code
+ # that calls call_command which reparses the command line, and if --noupgrade is supplied
+ # a parse error is thrown
+ import sys; sys.argv = sys.argv[:1]
+
print "Running service: %r" % service_name
service.run()
+
Something went wrong with that request. Please try again.