Fix problems from pyflakes output

This commit is contained in:
Will Kahn-Greene
2012-06-03 15:53:34 -04:00
parent 349f5b19f7
commit a855e92a98
14 changed files with 14 additions and 32 deletions

View File

@@ -14,7 +14,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import hashlib
import random
import logging
@@ -81,7 +80,7 @@ class CsrfMeddleware(BaseMeddleware):
request.environ['CSRF_TOKEN'] = \
request.cookies[mg_globals.app_config['csrf_cookie_name']]
except KeyError, e:
except KeyError:
# if it doesn't exist, make a new one
request.environ['CSRF_TOKEN'] = self._make_token(request)