# Pastebin vVXFYGF4 tests/test_login.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ musicbrainz_bot/editing.py:154: in __init__ self.login(username, password) musicbrainz_bot/editing.py:174: in login self.b.submit() env/lib/python3.10/site-packages/mechanize/_mechanize.py:697: in submit return self.open(self.click(*args, **kwds)) env/lib/python3.10/site-packages/mechanize/_mechanize.py:257: in open return self._mech_open(url_or_request, data, timeout=timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , url = data = None, update_history = True, visit = True, timeout = def _mech_open(self, url, data=None, update_history=True, visit=None, timeout=_sockettimeout._GLOBAL_DEFAULT_TIMEOUT): try: url.get_full_url except AttributeError: # string URL -- convert to absolute URL if required scheme, authority = _rfc3986.urlsplit(url)[:2] if scheme is None: # relative URL if self._response is None: raise BrowserStateError("can't fetch relative reference: " "not viewing any document") url = _rfc3986.urljoin(self._response.geturl(), url) request = self._request(url, data, visit, timeout) visit = request.visit if visit is None: visit = True if visit: self._visit_request(request, update_history) success = True try: response = UserAgentBase.open(self, request, data) except HTTPError as error: success = False if error.fp is None: # not a response raise response = error # except (IOError, socket.error, OSError) as error: # Yes, urllib2 really does raise all these :-(( # See test_urllib2.py for examples of socket.gaierror and OSError, # plus note that FTPHandler raises IOError. # XXX I don't seem to have an example of exactly socket.error being # raised, only socket.gaierror... # I don't want to start fixing these here, though, since this is a # subclass of OpenerDirector, and it would break old code. Even in # Python core, a fix would need some backwards-compat. hack to be # acceptable. # raise if visit: self._set_response(response, False) response = copy.copy(self._response) elif response is not None: response = _response.upgrade_response(response) if not success: > raise response E mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper: HTTP Error 500: Internal Server Error env/lib/python3.10/site-packages/mechanize/_mechanize.py:313: httperror_seek_wrapper During handling of the above exception, another exception occurred: def test_login(): try: reset_db() mb = MusicBrainzClient( cfg.MB_USERNAME, cfg.MB_PASSWORD, cfg.MB_SITE, use_test_db=True ) browser = mechanize.Browser() browser.set_handle_robots(False) browser.set_debug_redirects(False) browser.set_debug_http(False) mb.login(cfg.MB_USERNAME, cfg.MB_PASSWORD) return None except Exception as e: > raise Exception(e) E Exception: HTTP Error 500: Internal Server Error tests/test_login.py:27: Exception