diff --git a/importer.py b/importer.py
index 6babd624e26744523fb69f952218cde55a6b4678..502226e7d49e3a4f4613f14df79b39904875f6c1 100644
--- a/importer.py
+++ b/importer.py
@@ -139,11 +139,11 @@ def fetch_ro_course_events(item):
 	args = urllib.parse.parse_qs(url.query)
 	if 'pStpSpNr' in args: # Legacy URLs
 		id = args['pStpSpNr'][0]
-    elif len(url.path.split('/')) > 1 and url.path.split('/')[-2] == 'courses': # New URLs
-        id = url.path.split('/')[-1]
-    else:
-        flash("Ungültige URL: '"+url.geturl()+"'")
-        return [] #cant get events from wrong URL so just return empty list
+	elif len(url.path.split('/')) > 1 and url.path.split('/')[-2] == 'courses': # New URLs
+		id = url.path.split('/')[-1]
+	else:
+		flash("Ungültige URL: '"+url.geturl()+"'")
+		return [] #cant get events from wrong URL so just return empty list
 	cal = icalendar.Calendar().from_ical(fetch_ro_course_ical(id))
 	events = []
 	for comp in cal.subcomponents: