Skip to content

Commit

Permalink
Merge pull request bottlepy#213 from fredj/load_app-load
Browse files Browse the repository at this point in the history
Fix NameError exception in load_app (_load call)
  • Loading branch information
defnull committed Sep 14, 2011
2 parents 29b985b + 07a56a6 commit b2fa875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,7 @@ def load_app(target):
does not affect the current default application, but returns a separate
application object. See :func:`load` for details. """
tmp = app.push() # Create a new "default application"
rv = _load(target) # Import the target module
rv = load(target) # Import the target module
app.remove(tmp) # Remove the temporary added default application
return rv if isinstance(rv, Bottle) else tmp

Expand Down

0 comments on commit b2fa875

Please sign in to comment.