Mercurial > getan > getan
comparison getan/backend.py @ 564:c8e63e919a90
Fixes issues found by pyflakes.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 28 Sep 2020 14:48:51 +0200 |
parents | fbe26b0e59ed |
children |
comparison
equal
deleted
inserted
replaced
563:5ec211c172ed | 564:c8e63e919a90 |
---|---|
312 close(cur) | 312 close(cur) |
313 | 313 |
314 def load_recover(self): | 314 def load_recover(self): |
315 """If there is an entry in the recovery table, the entry is moved to | 315 """If there is an entry in the recovery table, the entry is moved to |
316 its project.""" | 316 its project.""" |
317 cor = None | |
318 try: | 317 try: |
319 cur = self.con.cursor() | 318 cur = self.con.cursor() |
320 # Creates the recover table if it does not exist to make old | 319 # Creates the recover table if it does not exist to make old |
321 # databases compatible. | 320 # databases compatible. |
322 cur.execute(CREATE_RECOVER) | 321 cur.execute(CREATE_RECOVER) |