You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.
When assets are pulled the script attempts to get the models data associated with an asset in the ReformatManager class.
class ReformatManager:
...
def prepare_reformat(self, media_item: MediaMetadata):
...
# This is the method call that is that's failing since the author.id cannot be found in the `directory_manager_users` map
download_path = self.filesystem_manager.get_directory_manager(
author.id
).root_download_directory
...
However it does not take into account that an asset can be owned by the user running the script, so an error occurs when attempting to find the author id in directory_manager_users.
For example, if the user sends a gif to a model, it is retrieved as an asset when scraping data and we run into the exception.
Forgive me for the poor formatting, I don't usually write Python so I'm not familiar with conventions for specifying files/classes/methods
The text was updated successfully, but these errors were encountered:
When assets are pulled the script attempts to get the models data associated with an asset in the ReformatManager class.
However it does not take into account that an asset can be owned by the user running the script, so an error occurs when attempting to find the author id in
directory_manager_users
.For example, if the user sends a gif to a model, it is retrieved as an asset when scraping data and we run into the exception.
Forgive me for the poor formatting, I don't usually write Python so I'm not familiar with conventions for specifying files/classes/methods
The text was updated successfully, but these errors were encountered: