core -- Fix flake8 errors

This commit is contained in:
Aurélien Delobelle 2018-10-06 12:47:19 +02:00
parent fdd2b35289
commit 402b544393
13 changed files with 16 additions and 23 deletions

View file

@ -6,7 +6,7 @@ class GestioncofConfig(AppConfig):
verbose_name = "Gestion des adhérents du COF"
def ready(self):
from . import signals
from . import signals # noqa
self.register_config()

View file

@ -5,7 +5,7 @@ def is_cof(user):
try:
profile = user.profile
return profile.is_cof
except:
except Exception:
return False
@ -16,7 +16,7 @@ def is_buro(user):
try:
profile = user.profile
return profile.is_buro
except:
except Exception:
return False

View file

@ -2,8 +2,6 @@ from django.conf import settings
from django.contrib.sites.models import Site
from django_cas_ng.backends import CASBackend
from gestioncof.models import CofProfile
class COFCASBackend(CASBackend):
def clean_username(self, username):