Skip to content

Commit

Permalink
Excepting HTTPError when Notebook information cannot be read (#49)
Browse files Browse the repository at this point in the history
* Excepting HTTPError when Notebook information cannot be read
  • Loading branch information
lenwevader authored Nov 15, 2024
1 parent 1e99014 commit fbc8b63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/arpes/utilities/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from os import SEEK_END
from pathlib import Path
from typing import TYPE_CHECKING, Required, TypedDict, TypeVar
from urllib.error import HTTPError

import ipykernel
from IPython.core.getipython import get_ipython
Expand Down Expand Up @@ -127,6 +128,8 @@ def get_full_notebook_information() -> NoteBookInfomation | None:
}
except (KeyError, TypeError):
pass
except HTTPError:
logger.debug("Could not read notebook information")
return None


Expand Down

0 comments on commit fbc8b63

Please sign in to comment.