mirror of
https://github.com/Michatec/MiniFaceBook.git
synced 2026-03-31 23:46:30 +02:00
Update main.py
This commit is contained in:
3
main.py
3
main.py
@@ -110,6 +110,7 @@ def needs_admin_setup():
|
|||||||
def inject_discord_available():
|
def inject_discord_available():
|
||||||
try:
|
try:
|
||||||
from routes.oauth import discord
|
from routes.oauth import discord
|
||||||
|
return dict(discord=discord)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return dict(discord=None)
|
return dict(discord=None)
|
||||||
|
|
||||||
@@ -237,4 +238,4 @@ if __name__ == '__main__':
|
|||||||
try:
|
try:
|
||||||
serve(app, host="0.0.0.0", port=80, threads=12)
|
serve(app, host="0.0.0.0", port=80, threads=12)
|
||||||
except:
|
except:
|
||||||
app.run(debug=True, host="0.0.0.0", port=80)
|
app.run(debug=True, host="0.0.0.0", port=80)
|
||||||
|
|||||||
Reference in New Issue
Block a user