Skip to content

Commit

Permalink
fix getting files from private gitlab instance
Browse files Browse the repository at this point in the history
  • Loading branch information
marwin1991 authored Dec 19, 2023
1 parent c88bdb4 commit c4e799d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions valhalla/extends/ValhallaExtends.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import List

import urllib.request
import requests
from yaml import safe_load

from valhalla.common.logger import info, error
Expand All @@ -10,10 +10,9 @@

def get_from_url(url):
result = ""
data = urllib.request.urlopen(resolve(url))
data = requests.get(resolve(url)).text
for line in data:
str_line = line.decode("UTF-8")
result += str_line
result += line
info("Loaded from ULR")
info("===========================================")
print(result)
Expand Down

0 comments on commit c4e799d

Please sign in to comment.