-
-
Save TheLittleNaruto/b728aadee1b097ddc2aebefb98380e22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
cartonCounterRouter = importlib.import_module("cartonCounterRouter") | |
except ImportError: | |
print("error in importing cartonCounterRouter") | |
# Some code goes.............. | |
@app.route('/api/carton/counter', methods=['POST']) | |
def carton_counter(): | |
return route_req("carton", cartonCounterRouter) | |
# | |
# return route_req("carton", cartonCounterRouter) | |
# NameError: name 'cartonCounterRouter' is not defined | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment