A former Spanish prime minister hopes to travel to Venezuela this weekend to help lawyers defending imprisoned opposition leader Leopoldo Lopez.

Felipe Gonzalez will travel to Colombia on Thursday and will decide after arriving in Bogota whether to visit Venezuela, according to Gonzalez's spokesman, Joaquin Tagar.

Gonzalez was widely criticized by Venezuelan President Nicolas Maduro after announcing he would advise Lopez and his supporters.

Tagar said Wednesday that Gonzalez needs to assess Venezuelan reaction to his planned trip before deciding whether to fly to Caracas.

Venezuela's Foreign Ministry has said that Gonzalez isn't "welcome" in the South American country.

The former prime minister is a lawyer and led Spain from 1982 to 1996.

Lopez has been jailed for 15 months in connection with his leadership of Venezuela's spring 2014 protests.