We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1baac27 + 5fc9d78 commit 16a970eCopy full SHA for 16a970e
jupyterhub_config.py
@@ -78,7 +78,9 @@
78
if not line:
79
continue
80
parts = line.split()
81
- name = parts[0]
82
- whitelist.add(name)
83
- if len(parts) > 1 and parts[1] == 'admin':
84
- admin.add(name)
+ # in case of newline at the end of userlist file
+ if len(parts) >= 1:
+ name = parts[0]
+ whitelist.add(name)
85
+ if len(parts) > 1 and parts[1] == 'admin':
86
+ admin.add(name)
0 commit comments