Delete file before opening newly created post.
This commit is contained in:
@@ -136,6 +136,7 @@ class SubredditPage(Page):
|
|||||||
if self.term.loader.exception:
|
if self.term.loader.exception:
|
||||||
raise TemporaryFileError()
|
raise TemporaryFileError()
|
||||||
|
|
||||||
|
if not self.term.loader.exception:
|
||||||
# Open the newly created post
|
# Open the newly created post
|
||||||
with self.term.loader('Loading submission'):
|
with self.term.loader('Loading submission'):
|
||||||
page = SubmissionPage(
|
page = SubmissionPage(
|
||||||
|
|||||||
Reference in New Issue
Block a user