fixed load_images to allow blank input
This commit is contained in:
@ -50,9 +50,9 @@ Fortunately if you regret your gitfiti in the morning, removing it is fairly eas
|
|||||||
|
|
||||||
---
|
---
|
||||||
####Todo:
|
####Todo:
|
||||||
- ~~Remove 'requests' dependency~~
|
- ~~Remove 'requests' dependency~~ [_thanks empathetic-alligator_](https://github.com/empathetic-alligator)
|
||||||
- Web interface
|
- 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
|
- Load commit content from a file
|
||||||
- ...
|
- ...
|
||||||
- Profit?
|
- Profit?
|
||||||
|
@ -89,6 +89,8 @@ images={
|
|||||||
|
|
||||||
def load_images(imgNames):
|
def load_images(imgNames):
|
||||||
"""loads user images from given file(s)"""
|
"""loads user images from given file(s)"""
|
||||||
|
if imgNames[0]=='':
|
||||||
|
return dict()
|
||||||
for imageName in imgNames:
|
for imageName in imgNames:
|
||||||
img = open(imageName)
|
img = open(imageName)
|
||||||
loadedImgs = {}
|
loadedImgs = {}
|
||||||
|
Reference in New Issue
Block a user