Skip to content

Commit

Permalink
refactor(Photoshop): Remove unnecessary exception type from suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
Investigamer committed Nov 5, 2023
1 parent 4f477c0 commit cb3344f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions photoshop/api/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def __init__(self, ps_version: Optional[str] = None, parent: Any = None):
os.environ["PS_VERSION"] = ps_version

# Establish the application object using provided version ID
if self._app_id:
self.app = self._get_application_object([self._app_id])
if self.app_id:
self.app = self._get_application_object([self.app_id])
if not self.app:
# Attempt unsuccessful
self._logger.debug(
Expand Down Expand Up @@ -187,7 +187,7 @@ def _get_application_object(self, versions: List[str] = None) -> Optional[Dispat
"""
for v in versions:
self.app_id = v
with suppress(OSError, AttributeError):
with suppress(OSError):
return CreateObject(self.program_name, dynamic=True)
return

Expand Down

0 comments on commit cb3344f

Please sign in to comment.