Closed maxstrobel closed 2 years ago
This breaks backwards compatibility when explicitly specifying progress_func=None
.
It shows there in the documentation:
:param progress_func: Provide custom function to print out or suppress print by setting to None
Maybe this should have been if progress_func and callable(progress_func) ...
?
@mrdalrym I don't understand your point, there is already a PR that fixes it What is the issue that you see?
@mrdalrym the version with the fix 0.8.3
, could you have look at it?
My bad, I just saw stuff failing on my end, saw this as a last change and was around when the 0.8.2 release went out. But looks is callable(None) will handle that case (i.e. this was the fix for that issue). Thanks for fixing this fast!
In artifactory.py a check to validate if
progress_func
is given, is missing - ifprogress_func
is None aTypeError
(TypeError: 'NoneType' object is not callable
) is raised.https://github.com/devopshq/artifactory/blob/1b2d87bc8c249ebea81dda10349b329efe74b48c/artifactory.py#L1400