Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #111 from dart-lang/fix-package-name

fix package name to gracefully handle null params
  • Loading branch information...
commit 8106803c8e1362f372b4eea1611863b6cc598443 2 parents ec79cbc + a2a205e
@sethladd sethladd authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/handlers/__init__.py
View
4 app/handlers/__init__.py
@@ -363,9 +363,9 @@ def maybe_package(self):
def _package_name(self):
"""Return the name of the current package."""
if self.route['controller'] == 'packages':
- return self.request.params['id']
+ return self.request.params.get('id')
else:
- return self.request.params['package_id']
+ return self.request.params.get('package_id')
@property
def has_oauth(self):
Please sign in to comment.
Something went wrong with that request. Please try again.