1. Yuya Nishihara
  2. thg-qt-mq

Source

thg-qt-mq / less-except-expodiff.diff

Yuya Nishihara a9effc2 












# HG changeset patch
# Parent 2628b874d234ba279dd6cf430bd034271d3aad7e
diff --git a/tortoisehg/hgqt/repowidget.py b/tortoisehg/hgqt/repowidget.py
--- a/tortoisehg/hgqt/repowidget.py
+++ b/tortoisehg/hgqt/repowidget.py
@@ -1347,7 +1347,7 @@ class RepoWidget(QWidget):
                     f.write(diff)
                 finally:
                     f.close()
-            except Exception, e:
+            except (IOError, OSError):
                 WarningMsgBox(_('Repository Error'),
                               _('Unable to write diff file'))
         def exportDagRange():