Page MenuHomePhabricator

hgweb: minimize scope of a try-block in staticfile()
ClosedPublic

Authored by martinvonz on Aug 19 2020, 12:42 AM.

Details

Summary

I think the exceptions are only relevant for the os.stat() and
open() calls, and maybe to the fh.read() call.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Aug 19 2020, 12:42 AM
indygreg accepted this revision.Aug 22 2020, 6:39 PM
This revision is now accepted and ready to land.Aug 22 2020, 6:39 PM
This revision was automatically updated to reflect the committed changes.