Diffuse is a graphical tool for comparing and merging text files. It can retrieve files for comparison from Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK repositories.
DiffuseApplication.on_shutdown() is called even in command line mode (as expected), but when running diffuse with the argument --version, the member self.statepath is not initialized.
The fix simply tests if the variable has been initialized (not an empty string).
DiffuseApplication.on_shutdown()
is called even in command line mode (as expected), but when running diffuse with the argument--version
, the memberself.statepath
is not initialized.The fix simply tests if the variable has been initialized (not an empty string).