Skip to content

Commit

Permalink
Merge pull request #42 from inventree/attachment-fix
Browse files Browse the repository at this point in the history
Bug fix (typo)
  • Loading branch information
SchrodingersGat authored Jun 25, 2024
2 parents 30ac5a7 + d2e0910 commit 468a164
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inventree_wireviz/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def create_attachment(self, part, attachment, comment, user):
model_id=part.pk,
attachment=attachment,
comment=comment,
user=user
upload_user=user
)
except Exception:
pass
Expand All @@ -88,7 +88,7 @@ def create_attachment(self, part, attachment, comment, user):
pass

# Attachment not created
return None
raise ValidationError("Error creating attachment file")

def prepend_templates(self):
"""Prepend the contents of the wireviz template files to the wireviz file."""
Expand Down
2 changes: 1 addition & 1 deletion inventree_wireviz/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version information for the inventree-wireviz plugin"""

PLUGIN_VERSION = "0.6.0"
PLUGIN_VERSION = "0.6.1"

0 comments on commit 468a164

Please sign in to comment.