Skip to content

Commit e2e8ce8

Browse files
author
jenkins
committed
2014-10-22 14:40:16 automatic update
1 parent 9c00b73 commit e2e8ce8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/server/api/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ def get_del_addref_node(request, **kwargs):
188188
result_copy = node_dic.copy()
189189
if 'author' in result_copy.keys():
190190
result_copy['author'] = User.objects.get(pk=result_copy['author']).username
191-
result_copy['cite'] = len(result_copy['REF'])
191+
try:
192+
result_copy['cite'] = len(result_copy['REF'])
193+
except:
194+
result_copy['cite'] = 0
192195

193196
return HttpResponse(json.dumps(result_copy))
194197

0 commit comments

Comments
 (0)