You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have no languages configured in your library settings and one of the books in your collection has a language that's not in our list, you get an error like this:
Traceback (most recent call last):\n File \“/var/www/circulation/env/local/lib/python2.7/site-packages/flask/app.py\“, line 1612, in full_dispatch_request\n rv = self.dispatch_request()\n File \“/var/www/circulation/env/local/lib/python2.7/site-packages/flask/app.py\“, line 1598, in dispatch_request\n return self.view_functionsrule.endpoint\n File \“/var/www/circulation/api/routes.py\“, line 147, in decorated\n return f(*args, **kwargs)\n File \“/var/www/circulation/api/admin/routes.py\“, line 100, in decorated\n v = f(*args, **kwargs)\n File \“/var/www/circulation/api/admin/routes.py\“, line 79, in decorated\n return f(*args, **kwargs)\n File \“/var/www/circulation/api/admin/routes.py\“, line 94, in decorated\n return f(*args, **kwargs)\n File \“/var/www/circulation/api/admin/routes.py\“, line 493, in reset_lanes\n return app.manager.admin_lanes_controller.reset()\n File \“/var/www/circulation/api/admin/controller.py\“, line 1048, in reset\n create_default_lanes(self._db, flask.request.library)\n File \“/var/www/circulation/api/lanes.py\“, line 120, in create_default_lanes\n _db, library, tiny, priority=priority\n File \“/var/www/circulation/api/lanes.py\“, line 671, in create_lane_for_tiny_collections\n name = LanguageCodes.name_for_languageset(language_set)\n File \“/var/www/circulation/core/util/init.py\“, line 654, in name_for_languageset\n raise ValueError(\“No native or English name for %s\” % l)\nValueError: No native or English name for gaa
The text was updated successfully, but these errors were encountered:
aslagle
changed the title
Creating default lanes fails when there's a book with an unrecognized language.
Creating default lanes fails when there's a book with a language with no name.
Jan 17, 2018
If you have no languages configured in your library settings and one of the books in your collection has a language that's not in our list, you get an error like this:
Traceback (most recent call last):\n File \“/var/www/circulation/env/local/lib/python2.7/site-packages/flask/app.py\“, line 1612, in full_dispatch_request\n rv = self.dispatch_request()\n File \“/var/www/circulation/env/local/lib/python2.7/site-packages/flask/app.py\“, line 1598, in dispatch_request\n return self.view_functionsrule.endpoint\n File \“/var/www/circulation/api/routes.py\“, line 147, in decorated\n return f(*args, **kwargs)\n File \“/var/www/circulation/api/admin/routes.py\“, line 100, in decorated\n v = f(*args, **kwargs)\n File \“/var/www/circulation/api/admin/routes.py\“, line 79, in decorated\n return f(*args, **kwargs)\n File \“/var/www/circulation/api/admin/routes.py\“, line 94, in decorated\n return f(*args, **kwargs)\n File \“/var/www/circulation/api/admin/routes.py\“, line 493, in reset_lanes\n return app.manager.admin_lanes_controller.reset()\n File \“/var/www/circulation/api/admin/controller.py\“, line 1048, in reset\n create_default_lanes(self._db, flask.request.library)\n File \“/var/www/circulation/api/lanes.py\“, line 120, in create_default_lanes\n _db, library, tiny, priority=priority\n File \“/var/www/circulation/api/lanes.py\“, line 671, in create_lane_for_tiny_collections\n name = LanguageCodes.name_for_languageset(language_set)\n File \“/var/www/circulation/core/util/init.py\“, line 654, in name_for_languageset\n raise ValueError(\“No native or English name for %s\” % l)\nValueError: No native or English name for gaa
The text was updated successfully, but these errors were encountered: