11.08., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit d6e0fdd0 authored by di68kap's avatar di68kap

Merge remote-tracking branch 'origin/development' into development

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