From 58289a28b6e63828abbf591a394f3ce50c3b98d6 Mon Sep 17 00:00:00 2001 From: Eric Romano Date: Wed, 22 May 2013 12:57:39 -0400 Subject: [PATCH] fixed load_images to allow blank input --- README.md | 4 ++-- gitfiti.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e91b35262..e15e900cd 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,9 @@ Fortunately if you regret your gitfiti in the morning, removing it is fairly eas --- ####Todo: -- ~~Remove 'requests' dependency~~ +- ~~Remove 'requests' dependency~~ [_thanks empathetic-alligator_](https://github.com/empathetic-alligator) - Web interface -- ~~Load "art" from a file~~ +- ~~Load "art" from a file~~ [_thanks empathetic-alligator_](https://github.com/empathetic-alligator) - Load commit content from a file - ... - Profit? diff --git a/gitfiti.py b/gitfiti.py index 8e5e69d65..8ea7c841f 100755 --- a/gitfiti.py +++ b/gitfiti.py @@ -89,6 +89,8 @@ images={ def load_images(imgNames): """loads user images from given file(s)""" + if imgNames[0]=='': + return dict() for imageName in imgNames: img = open(imageName) loadedImgs = {}