improve coding
This commit is contained in:
@@ -274,7 +274,7 @@ class ApplicationPartPut(ApplicationBase):
|
|||||||
errno_e = int(errno_match.group(1))
|
errno_e = int(errno_match.group(1))
|
||||||
if errno_e == errno.ENOSPC:
|
if errno_e == errno.ENOSPC:
|
||||||
return httputils.INSUFFICIENT_STORAGE
|
return httputils.INSUFFICIENT_STORAGE
|
||||||
elif (errno_e == errno.EPERM) or (errno_e == errno.EACCES):
|
elif errno_e in [errno.EPERM, errno.EACCES]:
|
||||||
return httputils.FORBIDDEN
|
return httputils.FORBIDDEN
|
||||||
else:
|
else:
|
||||||
return httputils.INTERNAL_SERVER_ERROR
|
return httputils.INTERNAL_SERVER_ERROR
|
||||||
|
|||||||
Reference in New Issue
Block a user