Index: /main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/authentication.py
===================================================================
--- /main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/authentication.py	(revision 7045)
+++ /main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/authentication.py	(revision 7046)
@@ -232,7 +232,7 @@
         if ac.state == 'used' and appl_ac != ac.representation:
             return None
-        if appl_ac is not None and appl_ac != ac.representation:
-            # This should never happen. It means a catalog error.
-            return None
+        # If the following fails we have a catalog error. Bad enough
+        # to pull emergency break.
+        assert appl_ac is None or appl_ac == ac.representation
         return ApplicantPrincipalInfo(accesscode)
 
