Commit d0658d98 authored by di68kap's avatar di68kap

- neue Version von DHParser

parent 63043dad
......@@ -279,9 +279,9 @@ def load_if_file(text_or_file) -> str:
return content
except FileNotFoundError:
if RX_FILEPATH.fullmatch(text_or_file):
raise FileNotFoundError('Not a valid filepath or URL: "' + text_or_file + '". \n'
'(Add an empty line to distinguish source data from '
'a file name.)')
raise FileNotFoundError('File not found or not a valid filepath or URL: "'
+ text_or_file + '". \n(Add an empty line to '
'distinguish source data from a file name.)')
else:
return text_or_file
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment