WeiboErrorHandler: cast error_code to int.

Sometimes, APIError.error_code is a string instead of
a int (why) ? Cast error_code to int.