Skip to content

Commit

Permalink
add regex matching back to server_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Sep 26, 2019
1 parent 76605ce commit bb6f244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ def list_running_servers(runtime_dir=None):
return

for file_name in os.listdir(runtime_dir):
if file_name.startswith('jpserver-'):
if re.match('jpserver-(.+).json', file_name):
with io.open(os.path.join(runtime_dir, file_name), encoding='utf-8') as f:
info = json.load(f)

Expand Down

0 comments on commit bb6f244

Please sign in to comment.