Add try catch for update deps method