Skip to content


Subversion checkout URL

You can clone with
Download ZIP


fix startup failure when --noupgrade is passed #610

merged 2 commits into from

2 participants


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

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/'

    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/
6 src/sentry/management/commands/
@@ -68,5 +68,11 @@ def handle(self, service_name='http', address=None, upgrade=True, **options):
+ # 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
Something went wrong with that request. Please try again.