fix accessing methods through 'path-metadata' pathfmt proxy (#6582)
https://github.com/mikf/gallery-dl/issues/6582#issuecomment-3193498152
This commit is contained in:
@@ -118,7 +118,7 @@ class PathfmtProxy():
|
||||
|
||||
def __getattribute__(self, name):
|
||||
pathfmt = object.__getattribute__(self, "job").pathfmt
|
||||
return pathfmt.__dict__.get(name) if pathfmt else None
|
||||
return getattr(pathfmt, name, None) if pathfmt else None
|
||||
|
||||
def __str__(self):
|
||||
if pathfmt := object.__getattribute__(self, "job").pathfmt:
|
||||
|
||||
Reference in New Issue
Block a user