diff --git a/Dockerfile b/Dockerfile index 22adf87..b6911ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3-jessie +FROM python:3-stretch WORKDIR /var/www diff --git a/SlideUtil.py b/SlideUtil.py index e459db4..0342106 100644 --- a/SlideUtil.py +++ b/SlideUtil.py @@ -20,8 +20,8 @@ def process(img): if checkslide(img['name'], check_url): try: img = openslidedata(img) - img['study'] = img['study'] or "" - img['specimen'] = img['specimen'] or "" + img['study'] = img.get('study', "") + img['specimen'] = img.get('specimen', "") img['location'] = img['location'] or img['filename'] img = postslide(img, post_url) except BaseException as e: