More specific path checks (file vs directory).

This commit is contained in:
grossmj committed 2014-04-11 14:48:30 -06:00
1 parent 8020c2e99c
commit 96231e3f7f
8 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -25,6 +25,6 @@ def image(request):
cwd = os.path.dirname(os.path.abspath(__file__))
image_path = os.path.join(cwd, "c3725.image")
if not os.path.exists(image_path):
if not os.path.isfile(image_path):
return None
return image_path