From 0a5cada92d89ce2bdf078c9858013663f77bef2c Mon Sep 17 00:00:00 2001 From: myphs Date: Sat, 21 May 2022 16:52:21 +0200 Subject: [PATCH] FIX: Skip dirs without id or name instead of aborting There are directories now that contain neither a name or an id delivered by the API for some reason, looking like this: { 'is_visible': True, 'is_readable': False, 'is_writable': True } which makes no sense at all. If such a directory is given the processing is stopped here and all further directories are ignored. This should not be the case. This commit fixes this behavior, so that all directories are processed as expected. --- src/studip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/studip.py b/src/studip.py index 322eeee..34777f6 100755 --- a/src/studip.py +++ b/src/studip.py @@ -176,5 +176,5 @@ class Studip: sub_name = subdir['name'] res_subdirs[sub_id] = sub_name except KeyError: - return res_subdirs + continue return res_subdirs