diff --git a/wagtail_transfer/auth.py b/wagtail_transfer/auth.py index 28f56e1..970d104 100644 --- a/wagtail_transfer/auth.py +++ b/wagtail_transfer/auth.py @@ -33,7 +33,4 @@ def digest_for_source(source, message): return hmac.new(key, message, hashlib.sha1).hexdigest() def requests_auth(source): - try: - return settings.WAGTAILTRANSFER_SOURCES[source]['BASIC_AUTH'] - except: - return None \ No newline at end of file + return settings.WAGTAILTRANSFER_SOURCES[source].get('BASIC_AUTH', None)