mirror of https://github.com/calzoneman/sync.git
Don't break if the profile is corrupt
This commit is contained in:
parent
e8a2753e19
commit
4b8681c2a4
|
@ -3,6 +3,7 @@ var $util = require("../utilities");
|
|||
var bcrypt = require("bcrypt");
|
||||
var db = require("../database");
|
||||
var Config = require("../config");
|
||||
var Logger = require("../logger");
|
||||
|
||||
var registrationLock = {};
|
||||
var blackHole = function () { };
|
||||
|
@ -452,7 +453,9 @@ module.exports = {
|
|||
userprof.text = profile.text || "";
|
||||
callback(null, userprof);
|
||||
} catch (e) {
|
||||
callback(e, null);
|
||||
Logger.errlog.log("Corrupt profile: " + rows[0].profile +
|
||||
" (user: " + name + ")");
|
||||
callback(null, userprof);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue