diff options
author | Martin Green <martin.speleo@gmail.com> | 2022-06-19 00:25:48 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2022-06-19 00:25:48 +0100 |
commit | 5f34a78d942ef7f5ea0accf662cdc5ed033fd47d (patch) | |
tree | 223ca318ace7ef2d74dcf02dd051d55e65a93691 /core/views/expo.py | |
parent | f0cfed2ef68501a16e9f917e1dad9b2f88ea199e (diff) | |
download | troggle-5f34a78d942ef7f5ea0accf662cdc5ed033fd47d.tar.gz troggle-5f34a78d942ef7f5ea0accf662cdc5ed033fd47d.tar.bz2 troggle-5f34a78d942ef7f5ea0accf662cdc5ed033fd47d.zip |
test
Diffstat (limited to 'core/views/expo.py')
-rw-r--r-- | core/views/expo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py index f39c3dd..178cbc0 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -298,9 +298,10 @@ def editexpopage(request, path): # if re.search(r"iso-8859-1", html): # body = str(body, "iso-8859-1") else: - return HttpResponse(default_head + html + '<h3>HTML Parsing failure:<br>Page could not be parsed into header and body:<br>failure detected in expowebpage in views.expo.py</h3> Please edit this <var>:expoweb:</var> page to be in the expected full HTML format .</body' ) + return HttpResponse(default_head + html + '<h3>HTML Parsing failure:<br>Page could not be parsed into header and body:<br>failure detected in expowebpage in views.expo.py</h3> Please edit this <var>:expoweb:</var> page to be in the expected full HTML format .</body>' ) except IOError: print("### File not found ### ", filepath) + return HttpResponse('File not found' ) filefound = False |