def _assure_dir(self):
try:<EOL><INDENT>os.makedirs(self._state_dir)<EOL><DEDENT>except OSError as err:<EOL><INDENT>if err.errno != errno.EEXIST:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>
Make sure the state directory exists