Skip to content

Commit

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

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

@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 @@ -83,7 +85,6 @@ 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 cdd3854

Please sign in to comment.