Take a look at this line of code in the 'master' branch on GitHub: https://github.com/rpm-software-management/dnf/blob/master/dnf/cli/main.py#L94 The name 'self' is not defined in the 'main()' function.
duplicate of 1259194
*** This bug has been marked as a duplicate of bug 1259194 ***