Skip to content

Getting: AttributeError: 'PermissionError' object has no attribute 'message' #297

@yashgupta9696

Description

@yashgupta9696

Due to the above error we are not getting the proper exception message in the reason for failure.

Trace:

Traceback (most recent call last):
  File "/usr/local/bin/s4cmd.py", line 520, in run
    self.__class__.__dict__[func_name](self, *args, **kargs)
  File "/usr/local/bin/s4cmd.py", line 129, in wrapper
    ret = func(*args, **kargs)
  File "/usr/local/bin/s4cmd.py", line 1442, in download
    raise Failure('Download Failure: %s, Source: %s.' % (e.message, source))
AttributeError: 'PermissionError' object has no attribute 'message'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions