Added logging on whether loading of FPS keys successful

pull/1/head
Raymond Yee 2012-05-11 11:14:43 -07:00
parent 0ffd89e072
commit 7b5c2feb35
1 changed files with 3 additions and 1 deletions

View File

@ -55,9 +55,11 @@ try:
from regluit.core.models import Key
FPS_ACCESS_KEY = Key.objects.get(name="FPS_ACCESS_KEY").value
FPS_SECRET_KEY = Key.objects.get(name="FPS_SECRET_KEY").value
except:
logger.info('Successful loading of FPS_*_KEYs')
except Exception, e:
FPS_ACCESS_KEY = ''
FPS_SECRET_KEY = ''
logger.info('EXCEPTION: unsuccessful loading of FPS_*_KEYs: {0}'.format(e))
def ProcessIPN(request):