diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index 645522c19..35396dd3f 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -94,7 +94,7 @@ class _PageLoaded(): is_stale = False try: self.element.has_class('whatever_class') - except StaleElementReferenceException: + except (StaleElementReferenceException, TypeError): # After a domain name change, Let's Encrypt will restart the web # server and could cause a connection failure. if driver.find_by_id('netErrorButtonContainer'):