=== django/contrib/sessions/backends/file.py
==================================================================
|
|
|
31 | 31 | try: |
32 | 32 | session_file = open(self._key_to_file(), "rb") |
33 | 33 | try: |
34 | | session_data = self.decode(session_file.read()) |
35 | | except(EOFError, SuspiciousOperation): |
36 | | self._session_key = self._get_new_session_key() |
37 | | self._session_cache = {} |
38 | | self.save() |
| 34 | try: |
| 35 | session_data = self.decode(session_file.read()) |
| 36 | except(EOFError, SuspiciousOperation): |
| 37 | self._session_key = self._get_new_session_key() |
| 38 | self._session_cache = {} |
| 39 | self.save() |
39 | 40 | finally: |
40 | 41 | session_file.close() |
41 | 42 | except(IOError): |