Remove string comparisons for illegal ACL

We should use try/except syntax to try to get rid of
unnecessary string comparisons.

Change-Id: I8dcd902beb27911ea52f8721355a336ccb1b2206
This commit is contained in:
Kota Tsuyuzaki
2014-08-13 18:43:51 -07:00
parent a2a812a792
commit ea0d0a4640
2 changed files with 15 additions and 11 deletions

View File

@@ -24,3 +24,7 @@ class NotS3Request(S3Exception):
class BadSwiftRequest(S3Exception):
pass
class ACLError(S3Exception):
pass