muellermichel / guetzli

A deliciously fast and simple Filesystem-Web-CMS
GNU Lesser General Public License v3.0
35 stars 6 forks source link

UnboundLocalError when calling non existent post id #2

Closed rbaertschi closed 8 years ago

rbaertschi commented 8 years ago

Opening a URL with non existent post id results in an UnboundLocalError. Instead it should probably return a 404 response.

Example: Opening "/en/001-about/1" where language "en" and page "001-about" exist results in the above mentioned error.

image

muellermichel commented 8 years ago

Fixed with current commit, now redirects to default page (in line with how pages behave).