Skip to content
Snippets Groups Projects
Commit 3484f538 authored by ichuang's avatar ichuang
Browse files

isinstance instead of type

parent a46a37d1
No related merge requests found
......@@ -120,7 +120,7 @@ def course_staff_group_name(course):
'''
course should be either a CourseDescriptor instance, or a string (the .course entry of a Location)
'''
if type(course)==str:
if isinstance(course,str):
coursename = course
else:
coursename = course.metadata.get('data_dir','UnknownCourseName')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment