Commits

Kirill Simonov committed d6838a1

Provide more explicit error message when HTSQL is not activated.

Comments (0)

Files changed (1)

src/htsql/context.py

         This property never returns ``None``; when there is no active
         application, it raises an exception.
         """
-        assert self.active_app is not None
+        if self.active_app is None:
+            raise RuntimeError("HTSQL application is not activated")
         return self.active_app