Skip to content

Commit

Permalink
Timeout (#190)
Browse files Browse the repository at this point in the history
* fix : check_update function updated #189

* doc : CHANGELOG updated #189
  • Loading branch information
sepandhaghighi authored Mar 26, 2023
1 parent f1e06cd commit 6f33631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Test system modified
- CLI mode updated
- `description_control` function modified
- `check_update` function modified
## [1.3] - 2021-06-30
### Added
- GitHub actions
Expand Down
2 changes: 1 addition & 1 deletion opem/Functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def check_update(Version):
:return: None
"""
try:
update_obj = requests.get(UpdateUrl)
update_obj = requests.get(UpdateUrl, timeout=100)
update_data = update_obj.text
if float(update_data) > Version:
line()
Expand Down

0 comments on commit 6f33631

Please sign in to comment.