Skip to content

Commit

Permalink
[16.0][IMP] Improvements about conciseness in code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
milleniumkid committed Dec 13, 2024
1 parent 03fe249 commit a6ecb40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_catch_500/models/ir_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HttpInherit(models.AbstractModel):

@classmethod
def _get_error_html(cls, env, code, values):
if code == 500 or code == "page_500":
if code == 500:
# if code == 500 or code == "page_500"
website = request.website
if website and website.catch_500_errors:
Expand Down

0 comments on commit a6ecb40

Please sign in to comment.