From 1c4d3e6aaae1bee99a541d167271e3ad6b6678cb Mon Sep 17 00:00:00 2001 From: Justin Zhang Date: Sat, 14 Oct 2023 01:02:08 -0400 Subject: [PATCH] Upgrade lints --- backend/accounts/backends.py | 2 +- backend/accounts/migrations/0001_initial.py | 1 - backend/accounts/migrations/0002_auto_20200213_1711.py | 1 - backend/accounts/migrations/0003_auto_20210918_2041.py | 1 - backend/accounts/migrations/0004_user_profile_pic.py | 1 - .../accounts/migrations/0005_privacyresource_privacysetting.py | 1 - 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/accounts/backends.py b/backend/accounts/backends.py index 899ca74a..f444638d 100644 --- a/backend/accounts/backends.py +++ b/backend/accounts/backends.py @@ -30,7 +30,7 @@ def get_email(self, pennid): return None return response[0]["email"] - except (requests.exceptions.RequestException): + except requests.exceptions.RequestException: return None def authenticate(self, request, remote_user, shibboleth_attributes): diff --git a/backend/accounts/migrations/0001_initial.py b/backend/accounts/migrations/0001_initial.py index cc8a5001..d4dbdb66 100644 --- a/backend/accounts/migrations/0001_initial.py +++ b/backend/accounts/migrations/0001_initial.py @@ -11,7 +11,6 @@ class Migration(migrations.Migration): - initial = True dependencies = [("auth", "0011_update_proxy_permissions")] diff --git a/backend/accounts/migrations/0002_auto_20200213_1711.py b/backend/accounts/migrations/0002_auto_20200213_1711.py index 740f3816..760e59db 100644 --- a/backend/accounts/migrations/0002_auto_20200213_1711.py +++ b/backend/accounts/migrations/0002_auto_20200213_1711.py @@ -35,7 +35,6 @@ def copy_permissions(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("accounts", "0001_initial")] operations = [ diff --git a/backend/accounts/migrations/0003_auto_20210918_2041.py b/backend/accounts/migrations/0003_auto_20210918_2041.py index ebf58f52..1016844f 100644 --- a/backend/accounts/migrations/0003_auto_20210918_2041.py +++ b/backend/accounts/migrations/0003_auto_20210918_2041.py @@ -32,7 +32,6 @@ def create_email_objects(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ("accounts", "0002_auto_20200213_1711"), ] diff --git a/backend/accounts/migrations/0004_user_profile_pic.py b/backend/accounts/migrations/0004_user_profile_pic.py index 244d5e92..3a203f7a 100644 --- a/backend/accounts/migrations/0004_user_profile_pic.py +++ b/backend/accounts/migrations/0004_user_profile_pic.py @@ -5,7 +5,6 @@ class Migration(migrations.Migration): - dependencies = [ ("accounts", "0003_auto_20210918_2041"), ] diff --git a/backend/accounts/migrations/0005_privacyresource_privacysetting.py b/backend/accounts/migrations/0005_privacyresource_privacysetting.py index f63a9439..b5ce7e07 100644 --- a/backend/accounts/migrations/0005_privacyresource_privacysetting.py +++ b/backend/accounts/migrations/0005_privacyresource_privacysetting.py @@ -6,7 +6,6 @@ class Migration(migrations.Migration): - dependencies = [ ("accounts", "0004_user_profile_pic"), ]