Skip to content

Commit

Permalink
Merge pull request #1104 from doronz88/bugfix/dsc-wrong-error
Browse files Browse the repository at this point in the history
developer: fix raised error on dsc operations
  • Loading branch information
doronz88 committed Jul 2, 2024
2 parents 3748995 + 14c4757 commit 4c74378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymobiledevice3/cli/developer.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ async def fetch_symbols_list_task(service_provider: LockdownServiceProvider) ->
print_json(DtFetchSymbols(service_provider).list_files())
else:
if not isinstance(service_provider, RemoteServiceDiscoveryService):
raise ArgumentError('service_provider must be a RemoteServiceDiscoveryService for iOS 17+ devices')
raise RSDRequiredError(service_provider.identifier)

async with RemoteFetchSymbolsService(service_provider) as fetch_symbols:
print_json([f.file_path for f in await fetch_symbols.get_dsc_file_list()])
Expand Down Expand Up @@ -736,7 +736,7 @@ async def fetch_symbols_download_task(service_provider: LockdownServiceProvider,
fetch_symbols.get_file(i, f)
else:
if not isinstance(service_provider, RemoteServiceDiscoveryService):
raise ArgumentError('service_provider must be a RemoteServiceDiscoveryService for iOS 17+ devices')
raise RSDRequiredError(service_provider.identifier)
async with RemoteFetchSymbolsService(service_provider) as fetch_symbols:
await fetch_symbols.download(out)

Expand Down

0 comments on commit 4c74378

Please sign in to comment.