Skip to content

Commit df0a6b4

Browse files
committed
project creation fails
1 parent 23dc590 commit df0a6b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mapswipe_workers/mapswipe_workers/base/base_project.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,12 @@ def save_project(self, fb_db):
138138
)
139139
return True
140140
except Exception:
141+
self.delete_from_postgres()
141142
logger.exception(
142143
f'{self.projectId}'
143144
f' - the project could not be saved'
144145
f' to firebase. '
145146
)
146-
self.delete_from_postgres()
147-
logger.info(f'{self.projectId} deleted project data from postgres')
148147
return False
149148
except Exception:
150149
logger.exception(

0 commit comments

Comments
 (0)