Get ready to use VSCode IDE
This commit is contained in:
@ -93,10 +93,11 @@ public class CertificationTrainingGroupWorker : IJob {
|
||||
_logger.LogInformation($"Processing cert record {{{record}}}");
|
||||
|
||||
if (record is not null) {
|
||||
User user = null;
|
||||
User? user;
|
||||
try {
|
||||
user = await _userService.GetUserByEmail(record.Email);
|
||||
} catch (Exception ex) {
|
||||
user = null;
|
||||
StringBuilder errMsgBuilder = new();
|
||||
errMsgBuilder.Append($"An exception occurred when attempting to get user for email {record.Email}. ");
|
||||
errMsgBuilder.Append($"Exception: {ex.Message}");
|
||||
|
Reference in New Issue
Block a user