diff options
Diffstat (limited to 'src/blogc-github-lambda/lambda_function.py.in')
-rw-r--r-- | src/blogc-github-lambda/lambda_function.py.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blogc-github-lambda/lambda_function.py.in b/src/blogc-github-lambda/lambda_function.py.in index cafb7c4..37d3828 100644 --- a/src/blogc-github-lambda/lambda_function.py.in +++ b/src/blogc-github-lambda/lambda_function.py.in @@ -75,7 +75,9 @@ def translate_filename(filename): p = basename.split('.') if len(p) == 2 and p[0] == 'index': f[-1] = 'index.html' - return '/'.join(f) + f = '/'.join(f) + if not os.path.exists(f): + return f return filename |