Catch all exceptions during purge.

This commit is contained in:
Paulo Gustavo Veiga 2013-03-24 17:20:41 -03:00
parent ed6d89fb7e
commit 04d58533cf

View File

@ -135,6 +135,7 @@ public class AdminController extends BaseController {
for (int i = minUid; i < maxUid; i++) { for (int i = minUid; i < maxUid; i++) {
System.out.println("Looking for user:" + i); System.out.println("Looking for user:" + i);
try {
final User user = userService.getUserBy(i); final User user = userService.getUserBy(i);
if (user != null) { if (user != null) {
// Do not process admin accounts ... // Do not process admin accounts ...
@ -164,7 +165,13 @@ public class AdminController extends BaseController {
} }
} }
} }
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (WiseMappingException e) {
e.printStackTrace();
} catch (RuntimeException e) {
e.printStackTrace();
} }
} }