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

Commit

Permalink
Remove os.environ from error handling test page
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Apr 3, 2014
1 parent e2e3c0f commit 8c46bbc
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 8c46bbc

Please sign in to comment.