diff options
author | Ronan Collobert <ronan@collobert.com> | 2013-10-25 17:10:40 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2013-10-25 17:10:40 +0400 |
commit | 2e104096239f9798948237be649cc6dbc13b0af2 (patch) | |
tree | 45a0a548ed7155a3f6e4088718053f2b1225c0ef | |
parent | d8af7e03ebca9a9f3114792a2334630115bafa29 (diff) |
do not fail is qttorch is not installed when requiring qtwidget
-rw-r--r-- | packages/qtwidget/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/qtwidget/init.lua b/packages/qtwidget/init.lua index 5a3bef7..7b0bba5 100644 --- a/packages/qtwidget/init.lua +++ b/packages/qtwidget/init.lua @@ -11,7 +11,7 @@ end qt.require 'libqtwidget' if (package.loaded['torch']) then - require('libqttorch') + pcall(require, 'libqttorch') end |