Skip to content

Commit

Permalink
Remove Exception as e for fetch_db
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Oct 19, 2023
1 parent 7fcae09 commit 1b4efb5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions helpers/external/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ def fetch_db(ip: str) -> Optional[Geolocation]:
)
except AddressNotFoundError:
return
except Exception as e:
app.session.logger.warning(e)

def fetch_web(ip: str, is_local: bool = False) -> Optional[Geolocation]:
response = app.session.requests.get(f'http://ip-api.com/line/{ip if not is_local else ""}')
Expand Down

0 comments on commit 1b4efb5

Please sign in to comment.