Using bandit -r nxdrive highliths several small issues:
>> Issue: [B110:try_except_pass] Try, Except, Pass detected. Severity: Low Confidence: High Location: nxdrive/client/local_client.py:619 More Info: https://bandit.readthedocs.io/en/latest/plugins/b110_try_except_pass.html 618 _, _, _, retcode = exc.args 619 except: 620 pass
A simple fix is to use contexlib.suppress().