Skip to content

Commit

Permalink
Update formats.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Mar 29, 2020
1 parent 39a262f commit 8a8fb3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupytext/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def read_format_from_metadata(text, ext):

def guess_format(text, ext):
"""Guess the format and format options of the file, given its extension and content"""
if matches_mystnb(text, ext):
if is_myst_available() and matches_mystnb(text, ext):
return MYST_FORMAT_NAME, {}
lines = text.splitlines()

Expand Down

0 comments on commit 8a8fb3d

Please sign in to comment.