Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kizniche committed Nov 6, 2023
2 parents 9eb05d5 + ff7aa3c commit 4e7ba6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mycodo/utils/github_release_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import logging
import os
import re
import socket
import sys
import urllib
from urllib.request import urlopen

from packaging.version import parse
Expand Down Expand Up @@ -40,6 +42,10 @@ def update_mycodo_tags(self):
tag_full = each_tag['ref'].split('/')
if len(tag_full) == 3 and re.match('v(\d+)\.(\d+)\.\d+', tag_full[2]):
parsed_tags.append(tag_full[2])
except socket.gaierror:
logger.error("Cannot connect")
except urllib.error.URLError:
logger.error("Cannot resolve name")
except Exception:
logger.exception("update_mycodo_tags()")
self.mycodo_tags = parsed_tags
Expand Down

0 comments on commit 4e7ba6e

Please sign in to comment.