Skip to content

Commit

Permalink
new return on no file, fixes double error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Feb 2, 2015
1 parent 96653b8 commit b9763c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netius/extra/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def on_data_http(self, connection, parser):
# verifies if the requested file exists in case it does not
# raises an error indicating the problem so that the user is
# notified about the failure to find the appropriate file
if not os.path.exists(path_f): self.on_no_file(connection)
if not os.path.exists(path_f): self.on_no_file(connection); return

# verifies if the currently resolved path refers an directory or
# instead a normal file and handles each of the cases properly by
Expand Down

0 comments on commit b9763c8

Please sign in to comment.