Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2234 from gittip/env-error-test
Browse files Browse the repository at this point in the history
Remove os.environ from error handling test page
  • Loading branch information
seanlinsley committed Apr 17, 2014
2 parents a0d4cce + 8c46bbc commit f17182a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/about/error.html.spt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import os
from aspen import Response
from environment import Environment, is_yesish
env = Environment('GITTIP_', TEST_ERROR_HANDLING=is_yesish)
[---]
if os.environ.get('GITTIP_TEST_ERROR_HANDLING') is not None:
if env.test_error_handling:
raise Response(int(qs['code']))
[---]
<style>
Expand Down

0 comments on commit f17182a

Please sign in to comment.