Skip to content

Commit

Permalink
suppress errors in mapillary/opensfm
Browse files Browse the repository at this point in the history
Differential Revision: D47743328

fbshipit-source-id: 8c1f719db79817730bf0aabf03899082fcca9a6c
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Jul 25, 2023
1 parent cdd3854 commit 5fe4115
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions viewer/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

@app.route("/")
def index() -> Response:
# pyre-fixme[6]: For 1st argument expected `typing_extensions.LiteralString` but
# got `Optional[str]`.
return send_file(os.path.join(app.static_folder, "index.html"))


Expand Down Expand Up @@ -85,6 +83,7 @@ def verified_send(file) -> Response:
if os.path.isfile(file):
return send_file(file)
else:
# pyre-fixme[7]: Expected `Response` but got implicit return value of `None`.
abort(404)


Expand Down

0 comments on commit 5fe4115

Please sign in to comment.