Skip to content
Browse files

Found some logical errors due to bugs

  • Loading branch information...
1 parent a60d188 commit 0047021d897bd2f4e8f7a2c1257d7956d78d9052 @AeroNotix committed May 15, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 timetracker/utils/calendar_utils.py
View
7 timetracker/utils/calendar_utils.py
@@ -631,7 +631,7 @@ def delete_user(request):
json_data = {
'success': False,
- 'error': 'Missing user',
+ 'error': '',
}
if user_id:
@@ -645,7 +645,8 @@ def delete_user(request):
json_data['success'] = True
return json_data
-
+ else:
+ json_data['error'] = "Missing user"
return json_data
@@ -742,7 +743,9 @@ def useredit(request):
email_log.error("email failed to send to %s with manager %s" %
(user.user_id, auth.admin.name()))
else:
+ json_data['error'] = str(error)
error_log.critical(str(error))
+ return json_data
json_data['success'] = True
return json_data

0 comments on commit 0047021

Please sign in to comment.
Something went wrong with that request. Please try again.