Skip to main content
added 161 characters in body
Source Link
agf
  • 178.5k
  • 45
  • 300
  • 241

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.

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.

Source Link
agf
  • 178.5k
  • 45
  • 300
  • 241

Change the last two lines to:

except Exception as e:
    print e
    sys.exit(1)