Skip to content

Commit

Permalink
adhere to typing restriction for FileObj
Browse files Browse the repository at this point in the history
  • Loading branch information
dginev committed Jan 7, 2025
1 parent 0ddb436 commit a3c016f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browse/controllers/files/dissemination.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _html_response(file_list: Union[List[FileObj],FileObj],
version: VersionEntry) -> Response:
if docmeta.source_format == 'html' or version.source_flag.html:
resp= _html_source_listing_response(file_list, arxiv_id)
elif issubclass(type(file_list), FileObj): #converted via latexml
elif isinstance(file_list, FileObj): #converted via latexml
resp= default_resp_fn(file_list, arxiv_id, docmeta, version)
resp.headers=add_surrogate_key(resp.headers,["html-latexml"])
else:
Expand Down

0 comments on commit a3c016f

Please sign in to comment.