Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Oct 11, 2023
1 parent 5d428bd commit 426826f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dpgen2/entrypoint/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@


def make_link(content, ref_key):
try:
raw_anchor = dargs.RAW_ANCHOR
except AttributeError:
raw_anchor = dargs.dargs.RAW_ANCHOR
raw_anchor = dargs.dargs.RAW_ANCHOR
return (
f"`{content} <{ref_key}_>`_" if not raw_anchor else f"`{content} <#{ref_key}>`_"
)
Expand Down

0 comments on commit 426826f

Please sign in to comment.