diff --git a/docs/source/techniques/DirecttoolsPythonModule.rst b/docs/source/techniques/DirecttoolsPythonModule.rst
index 1bc57f4e94c4918de2e86421642ccbda53fdc97e..c31c3f77c1ccc351c9c6e2c4eb64479384be488c 100644
--- a/docs/source/techniques/DirecttoolsPythonModule.rst
+++ b/docs/source/techniques/DirecttoolsPythonModule.rst
@@ -52,6 +52,7 @@ An important aspect of examining the :math:`S(Q,E)` workspace is to plot cuts at
 
    import directtools as dt
    from mantid.simpleapi import *
+   import warnings
    
    DirectILLCollectData(Run='ILL/IN4/084447.nxs', OutputWorkspace='data')
    DirectILLReduction(InputWorkspace='data', OutputWorkspace='SofQW')