Delete file before opening newly created post.

This commit is contained in:
Michael Lazar
2016-06-23 23:23:02 -07:00
parent a2f51dfc2e
commit c5db35fe82

View File

@@ -136,6 +136,7 @@ class SubredditPage(Page):
if self.term.loader.exception:
raise TemporaryFileError()
if not self.term.loader.exception:
# Open the newly created post
with self.term.loader('Loading submission'):
page = SubmissionPage(