Removed litter

This commit is contained in:
Profitroll 2022-10-07 14:19:27 +02:00
parent a13027614e
commit 07925d15eb
9 changed files with 1 additions and 34 deletions

View File

@ -31,5 +31,4 @@ from . import enums
from . import errors from . import errors
from . import utility from . import utility
from .classes import * from .classes import *
from .classes.Client import Client from .classes.Client import Client
# from .methods import *

View File

@ -93,10 +93,6 @@ def board_arrival(accessId: str,
output = get("https://www.rmv.de/hapi/arrivalBoard", params=payload, headers=headers) output = get("https://www.rmv.de/hapi/arrivalBoard", params=payload, headers=headers)
# Exceptions checker moved to normal methods
# and exceptions will no longer raise in raw ones.
# find_exception(output.json())
if json: if json:
return output.json() return output.json()
else: else:

View File

@ -94,10 +94,6 @@ def board_departure(accessId: str,
output = get("https://www.rmv.de/hapi/departureBoard", params=payload, headers=headers) output = get("https://www.rmv.de/hapi/departureBoard", params=payload, headers=headers)
# Exceptions checker moved to normal methods
# and exceptions will no longer raise in raw ones.
# find_exception(output.json())
if json: if json:
return output.json() return output.json()
else: else:

View File

@ -132,10 +132,6 @@ def him_search(accessId: str,
output = get("https://www.rmv.de/hapi/himsearch", params=payload, headers=headers) output = get("https://www.rmv.de/hapi/himsearch", params=payload, headers=headers)
# Exceptions checker moved to normal methods
# and exceptions will no longer raise in raw ones.
# find_exception(output.json())
if json: if json:
return output.json() return output.json()
else: else:

View File

@ -66,10 +66,6 @@ def journey_detail(accessId: str,
output = get("https://www.rmv.de/hapi/journeyDetail", params=payload, headers=headers) output = get("https://www.rmv.de/hapi/journeyDetail", params=payload, headers=headers)
# Exceptions checker moved to normal methods
# and exceptions will no longer raise in raw ones.
# find_exception(output.json())
if json: if json:
return output.json() return output.json()
else: else:

View File

@ -66,10 +66,6 @@ def stop_by_coords(accessId: str,
output = get("https://www.rmv.de/hapi/location.nearbystops", params=payload, headers=headers) output = get("https://www.rmv.de/hapi/location.nearbystops", params=payload, headers=headers)
# Exceptions checker moved to normal methods
# and exceptions will no longer raise in raw ones.
# find_exception(output.json())
if json: if json:
return output.json() return output.json()
else: else:

View File

@ -80,10 +80,6 @@ def stop_by_name(accessId: str,
output = get("https://www.rmv.de/hapi/location.name", params=payload, headers=headers) output = get("https://www.rmv.de/hapi/location.name", params=payload, headers=headers)
# Exceptions checker moved to normal methods
# and exceptions will no longer raise in raw ones.
# find_exception(output.json())
if json: if json:
return output.json() return output.json()
else: else:

View File

@ -248,10 +248,6 @@ def trip_find(accessId: str,
output = get("https://www.rmv.de/hapi/trip", params=payload, headers=headers) output = get("https://www.rmv.de/hapi/trip", params=payload, headers=headers)
# Exceptions checker moved to normal methods
# and exceptions will no longer raise in raw ones.
# find_exception(output.json())
if json: if json:
return output.json() return output.json()
else: else:

View File

@ -102,10 +102,6 @@ def trip_recon(accessId: str,
output = get("https://www.rmv.de/hapi/recon", params=payload, headers=headers) output = get("https://www.rmv.de/hapi/recon", params=payload, headers=headers)
# Exceptions checker moved to normal methods
# and exceptions will no longer raise in raw ones.
# find_exception(output.json())
if json: if json:
return output.json() return output.json()
else: else: