[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: How to ignore module not found
- From: Dan Christian <danchristian65@...>
- Date: Mon, 9 May 2016 09:19:33 -0700
How do I make require() not cause a stack trace when a module is not found?
I have a program that sometime runs on an embedded system where some
modules may not be available. I can't just install the module for
various reasons.
If it matters, the module is zlib. Everything works without it, but
it can reduce bandwidth if I have it.
I tried wrapping it in pcall, but that didn't work.
Thanks,
Dan