Skip to content

Commit

Permalink
Merge pull request #178 from stevedatadog/occured-occurred
Browse files Browse the repository at this point in the history
fix typo in logs that forces LearningLabs to make the typo
  • Loading branch information
jeremy-lq committed Oct 18, 2021
2 parents 55310f6 + e3d186f commit 526ff90
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions ads-service-fixed/ads.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def status():
return jsonify([b.serialize() for b in advertisements])

except:
app.logger.error("An error occured while getting ad.")
app.logger.error("An error occurred while getting ad.")
err = jsonify({'error': 'Internal Server Error'})
err.status_code = 500
return err
Expand All @@ -65,12 +65,12 @@ def status():

except:

app.logger.error("An error occured while creating a new ad.")
app.logger.error("An error occurred while creating a new ad.")
err = jsonify({'error': 'Internal Server Error'})
err.status_code = 500
return err

else:
err = jsonify({'error': 'Invalid request method'})
err.status_code = 405
return err
return err
6 changes: 3 additions & 3 deletions ads-service/ads.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def status():
return jsonify([b.serialize() for b in advertisements])

except:
app.logger.error("An error occured while getting ad.")
app.logger.error("An error occurred while getting ad.")
err = jsonify({'error': 'Internal Server Error'})
err.status_code = 500
return err
Expand All @@ -69,12 +69,12 @@ def status():

except:

app.logger.error("An error occured while creating a new ad.")
app.logger.error("An error occurred while creating a new ad.")
err = jsonify({'error': 'Internal Server Error'})
err.status_code = 500
return err

else:
err = jsonify({'error': 'Invalid request method'})
err.status_code = 405
return err
return err
4 changes: 2 additions & 2 deletions discounts-service-fixed/discounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def status():

except:

app.logger.error("An error occured while getting discounts.")
app.logger.error("An error occurred while getting discounts.")
err = jsonify({'error': 'Internal Server Error'})
err.status_code = 500
return err
Expand All @@ -63,7 +63,7 @@ def status():

except:

app.logger.error("An error occured while creating a new discount.")
app.logger.error("An error occurred while creating a new discount.")
err = jsonify({'error': 'Internal Server Error'})
err.status_code = 500
return err
Expand Down

0 comments on commit 526ff90

Please sign in to comment.