Improve printservant error handling
parent
70f257ee06
commit
f5eee8f824
|
@ -95,6 +95,9 @@ def stuff_print(size):
|
||||||
headers={'Content-Type': 'image/png'},
|
headers={'Content-Type': 'image/png'},
|
||||||
)
|
)
|
||||||
print('Printing job response', response)
|
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'
|
return 'ok'
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in New Issue