Permalink
Browse files

Fixes some handling exception code.

  • Loading branch information...
1 parent 494e927 commit 83f627867dd80dbd80d21760bb0372a1035d2e13 @alobbs alobbs committed Oct 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/wizards/ssl_test.py
@@ -61,8 +61,8 @@ def Commit_Rule (self):
if not os.path.exists (cert_dir):
try:
os.makedirs (cert_dir)
- except e:
- return {'ret': 'error', 'errors': {'%s!cert_key'%(PREFIX): str(e)}}
+ except Exception, e:
+ return {'ret': 'error', 'errors': {'%s!gen_autosigned_cert'%(PREFIX): str(e)}}
# Cert files
cert_fp = os.path.join (cert_dir, "autogenerated.crt")

0 comments on commit 83f6278

Please sign in to comment.