1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-24 02:37:05 +00:00

B2 buckets can't contain a slash so simplify error message

This commit is contained in:
barrybingo 2020-12-13 11:31:01 +00:00
parent 03e258e738
commit b5a9d30201

View File

@ -462,7 +462,7 @@ def list_target_files(config):
# With a slash anywhere after b2::// the above urlparse will put something into target.path, thus # With a slash anywhere after b2::// the above urlparse will put something into target.path, thus
if not "".__eq__(target.path): if not "".__eq__(target.path):
raise ValueError("""No B2 configuration option can contain '/' the foward slash character. raise ValueError("""No B2 configuration option can contain '/' the foward slash character.
Please create a new API key or Bucket that does not contain any forward slashes""") Please create a new API key that does not contain any forward slashes""")
from b2sdk.v1 import InMemoryAccountInfo, B2Api from b2sdk.v1 import InMemoryAccountInfo, B2Api
from b2sdk.v1.exception import NonExistentBucket from b2sdk.v1.exception import NonExistentBucket