Commits

Steve Borho  committed 3462c39

shlib: catch IOError from linux shell_notify

Refs #1542

  • Participants
  • Parent commits 7339130
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/util/shlib.py

             os.environ['THG_NOTIFY'] = notify
         if not os.path.isfile(notify):
             return
-        f_notify = open(notify, 'w')
+        try:
+            f_notify = open(notify, 'w')
+        except IOError:
+            return
         try:
             abspaths = [os.path.abspath(path) for path in paths if path]
             f_notify.write('\n'.join(abspaths))