Skip to content

Commit

Permalink
Update sekoia_automation/module.py
Browse files Browse the repository at this point in the history
Co-authored-by: Raphaël Cohen <[email protected]>
  • Loading branch information
a-leonardi and Darkheir authored Oct 5, 2023
1 parent a3a6533 commit be68ebf
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions sekoia_automation/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,21 +412,17 @@ def callback_url(self) -> str:

@cached_property
def logs_url(self) -> str:
if self._logs_url is None:
try:
self._logs_url = self.module.load_config(self.LOGS_URL_FILE_NAME)
except FileNotFoundError:
self._logs_url = self.callback_url.replace("/callback", "/logs")
return self._logs_url
try:
return self.module.load_config(self.LOGS_URL_FILE_NAME)
except FileNotFoundError:
return = self.callback_url.replace("/callback", "/logs")

Check failure on line 418 in sekoia_automation/module.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (E999)

sekoia_automation/module.py:418:20: E999 SyntaxError: Unexpected token '='

@cached_property
def secrets_url(self) -> str:
if self._secrets_url is None:
try:
self._secrets_url = self.module.load_config(self.SECRETS_URL_FILE_NAME)
except FileNotFoundError:
self._secrets_url = self.callback_url.replace("/callback", "/secrets")
return self._secrets_url
try:
return self.module.load_config(self.SECRETS_URL_FILE_NAME)
except FileNotFoundError:
return self.callback_url.replace("/callback", "/secrets")

@property
def _headers(self) -> dict[str, str]:
Expand Down

0 comments on commit be68ebf

Please sign in to comment.