forked from hswaw/labelmaker
Improve printservant error handling
This commit is contained in:
parent
70f257ee06
commit
f5eee8f824
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ def stuff_print(size):
|
|||
headers={'Content-Type': 'image/png'},
|
||||
)
|
||||
print('Printing job response', response)
|
||||
|
||||
if response.status_code != 200:
|
||||
return flask.Response(f"{response.text} ({response.status_code})", status=response.status_code)
|
||||
return 'ok'
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in a new issue