I use just Exception here to keep this the equivalent of a bare except:. You really should use RSUNotSupported so you don't hide other types of errors.
Change the last two lines to:
except Exception as e:
print e
sys.exit(1)
Change the last two lines to:
except Exception as e:
print e
sys.exit(1)
I use just Exception here to keep this the equivalent of a bare except:. You really should use RSUNotSupported so you don't hide other types of errors.