3 ms·
Yep. I'd add that making sure your script returns a proper error code and to output error logging to `stderr` is good practice too. No additional imports requir
by folkrav 5y ago
Yep. I'd add that making sure your script returns a proper error code and to output error logging to `stderr` is good practice too. No additional imports required in this case as you already have `sys`, by just replacing the `print('...')` with `sys.exit('...')`.