Skip to content

Commit

Permalink
Fix form errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeoLacruz committed Dec 17, 2024
1 parent da724ee commit 8a80129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inventree_zebra/zebra_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ def print_label(self, **kwargs):
url = f'https://api.labelary.com/v1/printers/{dpmm}dpmm/labels/{width_inch}x{height_inch}/0'
header = {'Content-type': 'application/x-www-form-urlencoded', 'Accept': 'application/pdf'}
response = Wrappers.post_request(self, li.dumpZPL(), url, header)
try:
try:
status_code = response.status_code
except Exception as Error:
except Exception:
status_code = 0
if status_code == 200:
self.preview_result = ContentFile(response.content, 'label.pdf')
Expand Down

0 comments on commit 8a80129

Please sign in to comment.