Skip to content

Commit

Permalink
Added try catch to handle issue caused by TeamMentor/TM_4_0_Design#682
Browse files Browse the repository at this point in the history
Note that this is not the best way to solve that issue since we still have TeamMentor/TM_4_0_Design#697
  • Loading branch information
DinisCruz committed Apr 14, 2015
1 parent 755a377 commit 6240ddb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/api/base-classes/Swagger-GraphDB.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ class Swagger_GraphDB extends Swagger_Common
return
if data instanceof Object and data.keys().empty() # if object, check if not empty
return
@.cache.put key,data # save data into cache
try
@.cache.put key,data # save data into cache
catch message
logger?.error "Got #{message} when saving cache key #{key}"

send_From_Cache: (res, key, callback)=>
if @.cache_Enabled
Expand Down
2 changes: 1 addition & 1 deletion src/services/data/Query-Tree.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Query_Tree

sort_Containers: (containers)->
titles = (container.title.lower() for container in containers).sort()
log titles

sorted_Containers = []
for title in titles
for container in containers
Expand Down

0 comments on commit 6240ddb

Please sign in to comment.