Skip to content

Commit

Permalink
Fix for plugin key lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed May 15, 2024
1 parent 5db2376 commit 6fec971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventree/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def printLabelModern(self, template, plugin=None, destination=None, *args, **kwa
if type(plugin) is str:
pass
elif hasattr(plugin, 'key'):
plugin = int(plugin.key)
plugin = plugin.key
else:
raise ValueError(f"Invalid plugin provided: {type(plugin)}")

Expand Down

0 comments on commit 6fec971

Please sign in to comment.