From 2adbae9a2dd296be71c6475e37940365fc0dd467 Mon Sep 17 00:00:00 2001 From: barrybingo Date: Sun, 13 Dec 2020 14:51:13 +0000 Subject: [PATCH] Simplify expression --- management/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/backup.py b/management/backup.py index 1a7cdedb..119a7c63 100755 --- a/management/backup.py +++ b/management/backup.py @@ -460,7 +460,7 @@ def list_target_files(config): # InvalidBackendURL error for B2 backend if application key contains a '/' character # See: https://bugs.launchpad.net/duplicity/+bug/1819390 # With a slash anywhere after b2::// the above urlparse will put something into target.path, thus - if not "".__eq__(target.path): + if target.path != "": raise ValueError("""No B2 configuration option can contain '/' the foward slash character. Please create a new API key that does not contain any forward slashes""")