Commits

Kirill Simonov committed d6838a1

Provide more explicit error message when HTSQL is not activated.

  • Participants
  • Parent commits 6a252df

Comments (0)

Files changed (1)

File 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