fix space check
This commit is contained in:
parent
417b2b4470
commit
87d07fbde5
@ -319,7 +319,10 @@ def doc_upload(id):
|
||||
)
|
||||
db.commit()
|
||||
except pymysql.Error as _e:
|
||||
error = "未知错误 %s" % (_e)
|
||||
if 'ck_usedspace' in str(_e):
|
||||
error = "空间不够用了,请向管理员申请扩容"
|
||||
else:
|
||||
error = "未知错误 %s" % (_e)
|
||||
db.rollback()
|
||||
else:
|
||||
error = "未收到有效的文件"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user