fix: Improve submit error handling on API and refactor client with async/await
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -128,7 +128,7 @@ def submit():
|
||||
else:
|
||||
raise Exception('Invalid article')
|
||||
|
||||
except BaseException as e:
|
||||
except Exception as e:
|
||||
logging.error('Problem with article submission: {} - {}'.format(e.__class__.__name__, str(e)))
|
||||
print(traceback.format_exc())
|
||||
return {'error': str(e)}, 400
|
||||
|
||||
Reference in New Issue
Block a user