Skip to content

Commit

Permalink
Core: Improve error handling for proxy authentication issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ikelos committed Apr 28, 2024
1 parent 974e6a4 commit 8f0d1b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions volatility3/framework/layers/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ def open(self, url: str, mode: str = "rb") -> Any:
raise excp
else:
raise excp
except ValueError as excp:
# Reraise errors such as proxy auth errors as offline exception errors
# Example Proxy auth error - ValueError: AbstractDigestAuthHandler does not support the following scheme: 'Negotiate'
vollog.info(f"Cannot access {url} due to {excp} - Setting OFFLINE")
constants.OFFLINE = True
raise exceptions.OfflineException(url)
except exceptions.OfflineException:
vollog.info(f"Not accessing {url} in offline mode")
raise
Expand Down

0 comments on commit 8f0d1b3

Please sign in to comment.