Skip to content

Commit aa68cb1

Browse files
committed
Update config types
1 parent bc74cb4 commit aa68cb1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/scaup/crud/samples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def create_sample(
8787
for i, sample_json in enumerate(samples_json):
8888
sample = Sample(**sample_json)
8989

90-
assert Config.ispyb_api.jwt is not None
9190
ext_sample = Expeye.upsert(Config.ispyb_api.jwt, sample, None)
9291
samples_json[i]["externalId"] = ext_sample["externalId"]
9392

src/scaup/utils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ConfigurationError(Exception):
1111
@dataclass
1212
class IspybApi:
1313
url: str
14-
jwt: str | None = None
14+
jwt: str
1515

1616

1717
@dataclass

0 commit comments

Comments
 (0)