Display the site data directory in get_data_dir's error message.

Review Request #13305 — Created Oct. 4, 2023 and submitted

Information

Review Board
release-6.x

Reviewers

We don't properly display the site data directory in get_data_dir's
error message. This change fixes that.

  • Ran into a case where the error is displayed and saw that the site
    data directory was included in the error message.
Summary ID
Fix the ImproperlyConfigured error message for get_data_dir.
7a2c0ad633579e46d91a09f50fe12a8367aad26a
Description From Last Updated

This has to be %'d outside of the _(), or it can't be localized. The _() will take the string …

chipx86chipx86
david
  1. Ship It!
  2. 
      
chipx86
  1. 
      
  2. reviewboard/admin/server.py (Diff revision 1)
     
     
     
     
    Show all issues

    This has to be %'d outside of the _(), or it can't be localized. The _() will take the string (which must be static) and look it up, and can then apply any %s in it.

  3. 
      
maubin
david
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
maubin
Review request changed
Status:
Completed
Change Summary:
Pushed to release-6.x (de9c9c2)