Skip to content

Commit

Permalink
Shorten import check
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua authored Dec 2, 2024
1 parent 3e81851 commit a2c79cf
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/instawebhooks/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,11 @@

try:
from aiohttp import ClientSession
except ModuleNotFoundError as exc:
raise SystemExit("Aiohttp not found.\n pip install [--user] aiohttp") from exc

try:
from discord import Embed, File, SyncWebhook
except ModuleNotFoundError as exc:
raise SystemExit(
"Discord.py not found.\n pip install [--user] discord.py"
) from exc

try:
from instaloader import Instaloader, LoginRequiredException, Post, Profile
except ModuleNotFoundError as exc:
raise SystemExit(
"Instaloader not found.\n pip install [--user] instaloader"
) from exc
exc.name + " not found.\n pip install [--user] " + exc.name) from exc


def regex(pattern: str):
Expand Down

0 comments on commit a2c79cf

Please sign in to comment.