Skip to content

Commit

Permalink
fixup! Bring create eSuite klant logic in line with spec
Browse files Browse the repository at this point in the history
  • Loading branch information
swrichards committed Jan 13, 2025
1 parent 3d38a48 commit c6e0f9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/open_inwoner/cms/cases/views/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,10 +998,9 @@ def register_by_api(self, form, config: ESuiteKlantConfig):
except ObjectDoesNotExist:
ztc = None

openklant_config = OpenKlantConfig.get_solo()
klant = None
try:
service = eSuiteKlantenService(config=openklant_config)
service = eSuiteKlantenService(config=config)
except (ImproperlyConfigured, RuntimeError):
self.log_system_action("could not build client for klanten API")
else:
Expand Down Expand Up @@ -1037,7 +1036,7 @@ def register_by_api(self, form, config: ESuiteKlantConfig):
data["onderwerp"] = ztc.contact_subject_code

try:
service = eSuiteVragenService(config=esuite_klant_config)
service = eSuiteVragenService(config=config)
except RuntimeError:
logger.error("Failed to build eSuiteVragenService")
return
Expand Down

0 comments on commit c6e0f9e

Please sign in to comment.