Skip to content

Commit

Permalink
Fix current_service_class method (#1172)
Browse files Browse the repository at this point in the history
Co-authored-by: Dhanshree Arora <[email protected]>
  • Loading branch information
Malikbadmus and DhanshreeA committed Jun 25, 2024
1 parent 468e641 commit 9ace45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ersilia/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def current_identifier(self):

def current_service_class(self):
data = self.get()
if data is None:
if data is None or data.get("service_class") is None:
return None
else:
return data["service_class"]
Expand Down

0 comments on commit 9ace45e

Please sign in to comment.