mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-13 22:26:01 +00:00
Some bug fixes
This commit is contained in:
1 parent
1f31d3b56f
commit
a4c5d48159
3 files changed
+4
-4
No files matched your search
@@ -38,8 +38,8 @@ class Subscriber(User):
|
||||
db.commit()
|
||||
except Exception as e:
|
||||
with open(settings.BASE_DIR+"/user_fail.log", "a") as f:
|
||||
print("FAIL to add user %s (%s %s - %s) to old site" % (self.id, self.first_name, self.last_name,
|
||||
self.email), file=f)
|
||||
print("FAIL to add user %s (%s %s - %s) to old site" % (self.id, self.first_name.encode('utf-8'),
|
||||
self.last_name.encode('utf-8'), self.email), file=f)
|
||||
print("Reason: %s" % (repr(e)), file=f)
|
||||
db.rollback()
|
||||
|
||||
|
||||
Reference in new issue
Block a user