Skip to content

Commit 8ec502d

Browse files
committed
Not found should be only IndexError
1 parent aa0e906 commit 8ec502d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mazevo_r25/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def update_get_space_ids(mazevo_rooms):
3131
space = get_space_by_short_name(room.description)
3232
room_space.space_id = space.space_id
3333
room_space.save()
34-
except Exception:
34+
except IndexError:
3535
if room.description.startswith("_"):
3636
logger.info("No R25 space found for {}".format(room.description))
3737
continue

0 commit comments

Comments
 (0)