Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
added exception for connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
gradoj committed Apr 11, 2022
1 parent 1dcea07 commit b1925e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion disco.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ def check_msgs(id):
except JSONDecodeError:
logging.exception("disco_id not found")
return

except ConnectionError:
logging.exception("connection error")
return
logging.info('get msg packet %s from %s', data, url)
return data

Expand Down

0 comments on commit b1925e6

Please sign in to comment.