{{theTime}}

Search This Blog

Total Pageviews

Java Shutdown Hook

Runtime.getRuntime().addShutdownHook(new Thread(() -> {
            System.out.println("Shutdown started");
             //  Close all the resource locks
            System.out.println("Shutdown successful");
        }));

No comments:

ImportError: cannot import name 'soft_unicode' from 'markupsafe'

Check the markupsafe version.  To fix the problem install 2.0.1 pip install markupsafe==2.0.1